User: d_jencks
  Date: 01/09/18 15:00:44

  Modified:    src/main/org/jboss/test/lock/test
                        EnterpriseEntityStressTestCase.java
                        EnterpriseEntityTest.java SpinUnitTestCase.java
  Log:
  Changed tests to deploy/undeploy only once per testcase file.  Moved clearAuthCache 
to JBossTestServices
  
  Revision  Changes    Path
  1.3       +2 -2      
jbosstest/src/main/org/jboss/test/lock/test/EnterpriseEntityStressTestCase.java
  
  Index: EnterpriseEntityStressTestCase.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/lock/test/EnterpriseEntityStressTestCase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- EnterpriseEntityStressTestCase.java       2001/09/15 15:07:10     1.2
  +++ EnterpriseEntityStressTestCase.java       2001/09/18 22:00:44     1.3
  @@ -33,7 +33,7 @@
       *
       * @return   The test suite
       */
  -   public static Test suite()
  +   public static Test suite() throws Exception
      {
         TestSuite suite = new TestSuite();
   
  @@ -51,7 +51,7 @@
   
         suite.addTest(new TestSuite(Entity_Option_C_Multi_Test.class));
   
  -      return suite;
  +      return getJ2eeSetup(suite, "locktest.jar");
      }
   
      /**
  
  
  
  1.5       +0 -12     
jbosstest/src/main/org/jboss/test/lock/test/EnterpriseEntityTest.java
  
  Index: EnterpriseEntityTest.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/lock/test/EnterpriseEntityTest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- EnterpriseEntityTest.java 2001/09/15 15:07:10     1.4
  +++ EnterpriseEntityTest.java 2001/09/18 22:00:44     1.5
  @@ -144,8 +144,6 @@
       */
      protected void setUp() throws Exception
      {
  -      super.setUp();
  -      deployJ2ee("locktest.jar");
         nbThreads = DEFAULT_THREAD_COUNT;
         iterations = DEFAULT_ITERATIONS;
         getLog().debug("+++ Setting up: " + getClass().getName() + " test: " + 
getName());
  @@ -182,16 +180,6 @@
         failed = true;
      }
   
  -   /**
  -    * The teardown method for JUnit
  -    *
  -    * @exception Exception  Description of Exception
  -    */
  -   protected void tearDown() throws Exception
  -   {
  -      undeployJ2ee("locktest.jar");
  -      super.tearDown();
  -   }
   
      /**
       * #Description of the Method
  
  
  
  1.3       +10 -10    
jbosstest/src/main/org/jboss/test/lock/test/SpinUnitTestCase.java
  
  Index: SpinUnitTestCase.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/lock/test/SpinUnitTestCase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SpinUnitTestCase.java     2001/09/15 15:07:10     1.2
  +++ SpinUnitTestCase.java     2001/09/18 22:00:44     1.3
  @@ -28,7 +28,7 @@
    * Test of EJB call invocation overhead.
    *
    * @author    [EMAIL PROTECTED]
  - * @version   $Revision: 1.2 $
  + * @version   $Revision: 1.3 $
    */
   public class SpinUnitTestCase extends JBossTestCase
   {
  @@ -139,15 +139,11 @@
      {
         try
         {
  -         super.setUp();
  -         getLog().debug("+++ Performing the TestSuite setup");
  -         deployJ2ee("locktest.jar");
  -         //Deploy.deploy(filename);
            create();
         }
         catch (Exception e)
         {
  -         e.printStackTrace();
  +         getLog().error("setup error in create: ", e);
            throw e;
         }
      }
  @@ -162,16 +158,20 @@
         try
         {
            remove();
  -         undeployJ2ee("locktest.jar");
  -         super.tearDown();
  -
         }
         catch (Exception e)
         {
  -         e.printStackTrace();
  +         getLog().error("teardown error in remove: ", e);
            throw e;
         }
      }
  +
  +   public static Test suite() throws Exception
  +   {
  +      return getJ2eeSetup(SpinUnitTestCase.class, "locktest.jar");
  +   }
  +
  +
   
      /**
       * #Description of the Class
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to