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

EntityQueryUnitTestCase

public class EntityQueryUnitTestCase extends EntityClassloaderTestBase
Tests caching of queries involving custom types.
author
Brian Stansberry
version
$Revision: 60233 $

Fields Summary
private static boolean
firstNamedRegionTest
Constructors Summary
public EntityQueryUnitTestCase(String name)

   
     
   
      super(name);
   
Methods Summary
public static junit.framework.Testsuite()

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

      suite.addTest(t1);

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

      log.info("+++ start testManualQueryDefaultRegion");
      queryTest(true, false, false, false);
      log.info("+++ end testManualQueryDefaultRegion");
   
public voidtestManualQueryNamedRegion()

      
      log.info("+++ start testManualQueryNamedRegion");
      try
      {
         queryTest(true, false, true, firstNamedRegionTest);
      }
      finally
      {
         firstNamedRegionTest = false;
      }
      log.info("+++ end testManualQueryNamedRegion");
   
public voidtestNamedQueryDefaultRegion()

    
      log.info("+++ start testNamedQueryDefaultRegion");
      queryTest(true, true, false, false);
      log.info("+++ end testNamedQueryDefaultRegion");
   
public voidtestNamedQueryNamedRegion()

      
      log.info("+++ start testNamedQueryNamedRegion");
      try
      {
         queryTest(true, true, true, firstNamedRegionTest);
      }
      finally
      {
         firstNamedRegionTest = false;
      }
      log.info("+++ start testNamedQueryNamedRegion");