FileDocCategorySizeDatePackage
ProvidedPrefixEntityQueryUnitTestCase.javaAPI DocJBoss 4.2.12435Fri Jul 13 20:53:06 BST 2007org.jboss.ejb3.test.clusteredentity.unit

ProvidedPrefixEntityQueryUnitTestCase

public class ProvidedPrefixEntityQueryUnitTestCase extends EntityQueryUnitTestCase
Duplicates teh EntityQueryUnitTestCase, but with a hibernate.cache.region_prefix specified in persistence.xml.
author
Brian Stansberry

Fields Summary
public static final String
EAR_NAME
public static final String
PROVIDED_PREFIX
Constructors Summary
public ProvidedPrefixEntityQueryUnitTestCase(String name)

   
     
   
      super(name);
   
Methods Summary
protected java.lang.StringcreateRegionName(java.lang.String noPrefix)

      return "/" + PROVIDED_PREFIX + "/" + noPrefix.replace('.", '/");
   
protected java.lang.StringgetEarName()

      return EAR_NAME;
   
protected java.lang.StringgetJarName()

      return EAR_NAME;
   
public static junit.framework.Testsuite()

      TestSuite suite = new TestSuite();
      Test t1 = getDeploySetup(ProvidedPrefixEntityQueryUnitTestCase.class, 
                               EAR_NAME + ".ear");

      suite.addTest(t1);

      // Create an initializer for the test suite
      DBSetup wrapper = new DBSetup(suite);
      return wrapper;