[Jboss-cvs] JBossAS SVN: r56760 - branches/Branch_4_0/testsuite/src/main/org/jboss/test/webservice/handlerflow

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


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

Modified:
   branches/Branch_4_0/testsuite/src/main/org/jboss/test/webservice/handlerflow/HandlerFlowTestCase.java
Log:
JBAS-3608, the execution order of tests in this test case is important so it must be defined explicitly when running under some JVMs

Modified: branches/Branch_4_0/testsuite/src/main/org/jboss/test/webservice/handlerflow/HandlerFlowTestCase.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/webservice/handlerflow/HandlerFlowTestCase.java	2006-09-12 12:03:08 UTC (rev 56759)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/webservice/handlerflow/HandlerFlowTestCase.java	2006-09-12 12:15:39 UTC (rev 56760)
@@ -21,13 +21,17 @@
  */
 package org.jboss.test.webservice.handlerflow;
 
+import java.util.Arrays;
+import java.util.List;
+
+import javax.naming.InitialContext;
+
 import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.jboss.test.JBossTestCase;
 import org.jboss.test.webservice.WebserviceTestBase;
 
-import javax.naming.InitialContext;
-import java.util.Arrays;
-import java.util.List;
-
 /**
  * The HelloEjb is the web service client conecting to HelloJSE.
  * Both the client and the server have handlers configured, we test
@@ -47,7 +51,14 @@
 
    public static Test suite() throws Exception
    {
-      return getDeploySetup(HandlerFlowTestCase.class, "ws4ee-handlerflow.jar, ws4ee-handlerflow.war");
+      // JBAS-3608, 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 HandlerFlowTestCase("testHandlerFlowAllPass"));
+      suite.addTest(new HandlerFlowTestCase("testHandlerFlowClientReturn"));
+      suite.addTest(new HandlerFlowTestCase("testHandlerFlowServerReturn"));      
+      
+      return JBossTestCase.getDeploySetup(suite, "ws4ee-handlerflow.jar, ws4ee-handlerflow.war");  
    }
    
    public void setUp() throws Exception




More information about the jboss-cvs-commits mailing list