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

EntityQueryRedeployUnitTestCase

public class EntityQueryRedeployUnitTestCase extends EntityClassloaderTestBase
Tests EJB redeployment when entities with @Lob fields are stored in the second level cache.
author
Brian Stansberry
version
$Revision: 60233 $

Fields Summary
Constructors Summary
public EntityQueryRedeployUnitTestCase(String name)

      super(name);
   
Methods Summary
private voidredeploy()

      RMIAdaptor[] adaptors = getAdaptors();
      undeploy(adaptors[1], getEarName() + ".ear");
      
      sleep(2000);
      
      deploy(adaptors[1], getEarName() + ".ear");
      
      sleep(2000);
      
      // Get the SFSB again
      sfsb1 = getEntityQueryTest(System.getProperty("jbosstest.cluster.node1"));
   
public static junit.framework.Testsuite()

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

      suite.addTest(t1);

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

      // Set things up with the default region
      queryTest(true, true, false, false);
      // Now get the named query regions active
      queryTest(false, true, true, true);
      
      redeploy();
      
      // Redo the test, but no entity creation
      queryTest(false, true, false, false);
      queryTest(false, true, true, true);