[Jboss-cvs] JBossAS SVN: r56759 - trunk/testsuite/src/main/org/jboss/test/session/test

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Sep 12 08:03:12 EDT 2006


Author: dimitris at jboss.org
Date: 2006-09-12 08:03:08 -0400 (Tue, 12 Sep 2006)
New Revision: 56759

Modified:
   trunk/testsuite/src/main/org/jboss/test/session/test/EjbRemoveUnitTestCase.java
Log:
JBAS-3607, the execution order of tests in this test case is important so it must be defined explicitly when running under some JVMs

Modified: trunk/testsuite/src/main/org/jboss/test/session/test/EjbRemoveUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/session/test/EjbRemoveUnitTestCase.java	2006-09-12 12:02:24 UTC (rev 56758)
+++ trunk/testsuite/src/main/org/jboss/test/session/test/EjbRemoveUnitTestCase.java	2006-09-12 12:03:08 UTC (rev 56759)
@@ -24,6 +24,7 @@
 import java.rmi.RemoteException;
 
 import junit.framework.Test;
+import junit.framework.TestSuite;
 
 import org.jboss.test.JBossTestCase;
 import org.jboss.test.session.interfaces.CountedSession;
@@ -39,17 +40,23 @@
  */
 public class EjbRemoveUnitTestCase extends JBossTestCase
 {
+   public static Test suite() throws Exception
+   {
+      // JBAS-3607, the execution order of tests in this test case is important
+      // so it must be defined explicitly when running under some JVMs
+      TestSuite suite = new TestSuite();
+      suite.addTest(new EjbRemoveUnitTestCase("testEjbRemoveCalledForEveryCall"));
+      suite.addTest(new EjbRemoveUnitTestCase("testEjbRemoveNotCalledForEveryCall"));
+      suite.addTest(new EjbRemoveUnitTestCase("testEjbRemoveMultiThread"));      
+      
+      return JBossTestCase.getDeploySetup(suite, "test-session-remove.jar");      
+   }
+   
    public EjbRemoveUnitTestCase(String name)
    {
       super(name);
    }
 
-   public static Test suite()
-      throws Exception
-   {
-      return getDeploySetup(EjbRemoveUnitTestCase.class, "test-session-remove.jar");
-   }
-   
    /**
     * In this test, pooling is disabled (MaximumSize==0) so call
     * to the CountedSession bean should create a new instance,




More information about the jboss-cvs-commits mailing list