[Jboss-cvs] JBossAS SVN: r56692 - branches/Branch_4_0/testsuite/src/main/org/jboss/test/jmx/test

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sat Sep 9 10:20:52 EDT 2006


Author: dimitris at jboss.org
Date: 2006-09-09 10:20:49 -0400 (Sat, 09 Sep 2006)
New Revision: 56692

Modified:
   branches/Branch_4_0/testsuite/src/main/org/jboss/test/jmx/test/JMXInvokerUnitTestCase.java
Log:
JBAS-3605, the execution order of tests is important, so it must be defined explicitly when running under some JVMs

Modified: branches/Branch_4_0/testsuite/src/main/org/jboss/test/jmx/test/JMXInvokerUnitTestCase.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/jmx/test/JMXInvokerUnitTestCase.java	2006-09-09 02:01:06 UTC (rev 56691)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/jmx/test/JMXInvokerUnitTestCase.java	2006-09-09 14:20:49 UTC (rev 56692)
@@ -1,41 +1,43 @@
 /*
-* 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.jmx.test;
 
 import javax.management.Attribute;
+import javax.management.ListenerNotFoundException;
 import javax.management.MBeanInfo;
 import javax.management.MBeanServerConnection;
 import javax.management.MalformedObjectNameException;
 import javax.management.ObjectName;
 import javax.management.ReflectionException;
-import javax.management.ListenerNotFoundException;
 
 import junit.framework.Test;
+import junit.framework.TestSuite;
+
 import org.jboss.jmx.adaptor.rmi.RMIAdaptor;
 import org.jboss.test.JBossTestCase;
+import org.jboss.test.jmx.invoker.BadListener;
 import org.jboss.test.jmx.invoker.CustomClass;
 import org.jboss.test.jmx.invoker.InvokerTestMBean;
 import org.jboss.test.jmx.invoker.Listener;
-import org.jboss.test.jmx.invoker.BadListener;
 
 /**
  * Tests for the jmx invoker adaptor.
@@ -44,18 +46,30 @@
  * @author Scott.Stark at jboss.org
  * @version $Revision$
  */
-public class JMXInvokerUnitTestCase
-   extends JBossTestCase
+public class JMXInvokerUnitTestCase extends JBossTestCase
 {
    public JMXInvokerUnitTestCase(String name)
    {
       super(name);
    }
 
-   public static Test suite()
-      throws Exception
+   public static Test suite() throws Exception
    {
-      return getDeploySetup(JMXInvokerUnitTestCase.class, "invoker-adaptor-test.ear");
+      // JBAS-3605, 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 JMXInvokerUnitTestCase("testGetSomething"));
+      suite.addTest(new JMXInvokerUnitTestCase("testGetCustom"));
+      suite.addTest(new JMXInvokerUnitTestCase("testGetCustomXMBean"));
+      suite.addTest(new JMXInvokerUnitTestCase("testGetXMBeanInfo"));
+      suite.addTest(new JMXInvokerUnitTestCase("testXMBeanDoSomething"));
+      suite.addTest(new JMXInvokerUnitTestCase("testSetCustom"));
+      suite.addTest(new JMXInvokerUnitTestCase("testClassNotFoundException"));
+      suite.addTest(new JMXInvokerUnitTestCase("testNotification"));
+      suite.addTest(new JMXInvokerUnitTestCase("testNotificationWithBadListener"));
+      suite.addTest(new JMXInvokerUnitTestCase("testServerInfoViaHttp"));
+      
+      return getDeploySetup(suite, "invoker-adaptor-test.ear");
    }
 
    /**




More information about the jboss-cvs-commits mailing list