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

OptimisticEntityQueryRedeployUnitTestCase

public class OptimisticEntityQueryRedeployUnitTestCase extends EntityQueryRedeployUnitTestCase
Executes the superclass tests, but with Hibernate and JBoss Cache configured for optimistic locking.
author
Brian Stansberry
version
$Id: ExtendedPersistenceUnitTestCase.java 60065 2007-01-27 23:05:44Z bstansberry@jboss.com $

Fields Summary
private static final String
EAR_NAME
public static final String
JAR_NAME
Constructors Summary
public OptimisticEntityQueryRedeployUnitTestCase(String name)

   
   
     
   
      super(name);
   
Methods Summary
protected java.lang.StringgetEarName()

      return EAR_NAME;      
   
protected java.lang.StringgetJarName()

      return JAR_NAME;      
   
protected booleanisOptimistic()

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

      TestSuite suite = new TestSuite();
      //  Deploy an optimistic cache before the ear
      Test t1 = getDeploySetup(OptimisticEntityQueryRedeployUnitTestCase.class, 
            "optimistic-entity-cache-service.xml, " + EAR_NAME + ".ear");

      suite.addTest(t1);

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