[jboss-cvs] JBossAS SVN: r60344 - trunk/testsuite/src/main/org/jboss/test/jbossmq/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Feb 6 15:25:48 EST 2007
Author: dimitris at jboss.org
Date: 2007-02-06 15:25:48 -0500 (Tue, 06 Feb 2007)
New Revision: 60344
Modified:
trunk/testsuite/src/main/org/jboss/test/jbossmq/test/JBossMQUnitTest.java
trunk/testsuite/src/main/org/jboss/test/jbossmq/test/UIL2JBossMQUnitTestCase.java
Log:
JBAS-4074, the execution order of tests in this test case is important
Modified: trunk/testsuite/src/main/org/jboss/test/jbossmq/test/JBossMQUnitTest.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jbossmq/test/JBossMQUnitTest.java 2007-02-06 20:18:49 UTC (rev 60343)
+++ trunk/testsuite/src/main/org/jboss/test/jbossmq/test/JBossMQUnitTest.java 2007-02-06 20:25:48 UTC (rev 60344)
@@ -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 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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 java.util.Enumeration;
@@ -51,6 +51,9 @@
import javax.naming.Context;
import javax.naming.InitialContext;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
import org.jboss.logging.Logger;
import org.jboss.test.JBossTestCase;
@@ -60,6 +63,7 @@
* Basic jms tests.
*
* @author Scott.Stark at jboss.org
+ * @author Dimitris.Andreadis at jboss.org
* @version $Revision$
*/
public class JBossMQUnitTest extends JBossTestCase
@@ -78,6 +82,34 @@
static QueueConnection queueConnection;
static TopicConnection topicConnection;
+ public static Test suite() throws Exception
+ {
+ // JBAS-4074, 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 JBossMQUnitTest("testQueueMessageOrder"));
+ suite.addTest(new JBossMQUnitTest("testRequestReplyQueue"));
+ suite.addTest(new JBossMQUnitTest("testTemporaryQueueDelete"));
+ suite.addTest(new JBossMQUnitTest("testTemporaryTopicDelete"));
+ suite.addTest(new JBossMQUnitTest("testInvalidDestinationQueueSend"));
+ suite.addTest(new JBossMQUnitTest("testInvalidDestinationQueueBrowse"));
+ suite.addTest(new JBossMQUnitTest("testInvalidDestinationTopicPublish"));
+ suite.addTest(new JBossMQUnitTest("testErrorsTopicSubscribe"));
+ suite.addTest(new JBossMQUnitTest("testCreateQueue"));
+ suite.addTest(new JBossMQUnitTest("testMessageListener"));
+ suite.addTest(new JBossMQUnitTest("testApplicationServerStuff"));
+ suite.addTest(new JBossMQUnitTest("testTopics"));
+ suite.addTest(new JBossMQUnitTest("testTopicNoLocal"));
+ suite.addTest(new JBossMQUnitTest("testTopicNoLocalBounce"));
+ suite.addTest(new JBossMQUnitTest("testTopicSelectorChange"));
+ suite.addTest(new JBossMQUnitTest("testTopicSelectorNullOrEmpty"));
+ suite.addTest(new JBossMQUnitTest("testSendReceiveOutdated"));
+ suite.addTest(new JBossMQUnitTest("testSendReceiveExpired"));
+ suite.addTest(new JBossMQUnitTest("testSendListenOutdated"));
+
+ return suite;
+ }
+
public JBossMQUnitTest(String name) throws Exception
{
super(name);
Modified: trunk/testsuite/src/main/org/jboss/test/jbossmq/test/UIL2JBossMQUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jbossmq/test/UIL2JBossMQUnitTestCase.java 2007-02-06 20:18:49 UTC (rev 60343)
+++ trunk/testsuite/src/main/org/jboss/test/jbossmq/test/UIL2JBossMQUnitTestCase.java 2007-02-06 20:25:48 UTC (rev 60344)
@@ -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 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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 junit.framework.Test;
@@ -26,12 +26,10 @@
import org.jboss.test.JBossTestSetup;
-
/**
* JBossMQ tests over UIL2
*/
-public class UIL2JBossMQUnitTestCase
- extends JBossMQUnitTest
+public class UIL2JBossMQUnitTestCase extends JBossMQUnitTest
{
public UIL2JBossMQUnitTestCase(String name) throws Exception
{
@@ -42,7 +40,7 @@
{
TestSuite suite = new TestSuite();
- suite.addTest(new JBossTestSetup(new TestSuite(UIL2JBossMQUnitTestCase.class))
+ suite.addTest(new JBossTestSetup(JBossMQUnitTest.suite())
{
protected void setUp() throws Exception
{
More information about the jboss-cvs-commits
mailing list