[Jboss-cvs] JBossAS SVN: r56717 - branches/Branch_4_0/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:44:50 EDT 2006
Author: dimitris at jboss.org
Date: 2006-09-11 06:44:47 -0400 (Mon, 11 Sep 2006)
New Revision: 56717
Modified:
branches/Branch_4_0/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: branches/Branch_4_0/testsuite/src/main/org/jboss/test/jbossmq/test/UnackedUnitTestCase.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/jbossmq/test/UnackedUnitTestCase.java 2006-09-11 10:19:53 UTC (rev 56716)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/jbossmq/test/UnackedUnitTestCase.java 2006-09-11 10:44:47 UTC (rev 56717)
@@ -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,21 @@
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"));
+
+ return suite;
+ }
+
/**
* Constructor the test
*
More information about the jboss-cvs-commits
mailing list