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

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Sep 11 06:55:54 EDT 2006


Author: dimitris at jboss.org
Date: 2006-09-11 06:55:52 -0400 (Mon, 11 Sep 2006)
New Revision: 56718

Modified:
   trunk/testsuite/src/main/org/jboss/test/jbossmq/test/UnackedUnitTestCase.java
Log:
JBAS-3580, 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/jbossmq/test/UnackedUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jbossmq/test/UnackedUnitTestCase.java	2006-09-11 10:44:47 UTC (rev 56717)
+++ trunk/testsuite/src/main/org/jboss/test/jbossmq/test/UnackedUnitTestCase.java	2006-09-11 10:55:52 UTC (rev 56718)
@@ -1,24 +1,24 @@
 /*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
 package org.jboss.test.jbossmq.test;
 
 import javax.jms.BytesMessage;
@@ -40,6 +40,9 @@
 import javax.jms.TopicSubscriber;
 import javax.naming.Context;
 
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
 import org.apache.log4j.Category;
 import org.jboss.test.JBossTestCase;
 
@@ -47,11 +50,10 @@
  * Rollback tests
  *
  * @author
- * @version
+ * @version $Revision$
  */
 public class UnackedUnitTestCase extends JBossTestCase
 {
-
    // Provider specific
    static String TOPIC_FACTORY = "ConnectionFactory";
    static String QUEUE_FACTORY = "ConnectionFactory";
@@ -67,6 +69,24 @@
    static TopicConnection topicConnection;
    static TopicConnection topicDurableConnection;
 
+   public static Test suite() throws Exception
+   {
+      // JBAS-3580, 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 UnackedUnitTestCase("testUnackedQueue"));
+      suite.addTest(new UnackedUnitTestCase("testUnackedMultipleSession"));
+      suite.addTest(new UnackedUnitTestCase("testUnackedMultipleConnection"));
+      suite.addTest(new UnackedUnitTestCase("testUnackedTopic"));
+      suite.addTest(new UnackedUnitTestCase("testUnackedDurableTopic"));
+      suite.addTest(new UnackedUnitTestCase("testDummyLast"));
+      
+      ClassLoader loader = Thread.currentThread().getContextClassLoader();
+      String module = loader.getResource("messaging/test-destinations-service.xml").toString();
+
+      return getDeploySetup(suite, module);
+   }
+   
    /**
     * Constructor the test
     *
@@ -665,11 +685,4 @@
    {
       return 5;
    }
-
-   public static junit.framework.Test suite() throws Exception
-   {
-       ClassLoader loader = Thread.currentThread().getContextClassLoader();
-       return getDeploySetup(UnackedUnitTestCase.class,
-               loader.getResource("messaging/test-destinations-service.xml").toString());
-   }
 }




More information about the jboss-cvs-commits mailing list