[Jboss-cvs] JBossAS SVN: r56695 - trunk/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 11:38:39 EDT 2006


Author: dimitris at jboss.org
Date: 2006-09-09 11:38:37 -0400 (Sat, 09 Sep 2006)
New Revision: 56695

Modified:
   trunk/testsuite/src/main/org/jboss/test/jmx/test/DeployXMBeanUnitTestCase.java
Log:
JBAS-3604, 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/jmx/test/DeployXMBeanUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jmx/test/DeployXMBeanUnitTestCase.java	2006-09-09 15:06:52 UTC (rev 56694)
+++ trunk/testsuite/src/main/org/jboss/test/jmx/test/DeployXMBeanUnitTestCase.java	2006-09-09 15:38:37 UTC (rev 56695)
@@ -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.jmx.test;
 
 import javax.management.Attribute;
@@ -27,6 +27,9 @@
 import javax.naming.InitialContext;
 import javax.naming.Name;
 
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
 import org.jboss.security.SecurityAssociation;
 import org.jboss.security.SimplePrincipal;
 import org.jboss.test.JBossTestCase;
@@ -36,6 +39,7 @@
 /** JBoss model mbean deployment tests
  *
  * @author <a href="mailto:d_jencks at users.sourceforge.net">David Jencks</a>
+ * @author <a href="mailto:dimitris at jboss.org">Dimitris Andreadis</a>
  * @author Scott.Stark at jboss.org
  * @version $Revision$
  */
@@ -48,6 +52,26 @@
       super(name);
    }
 
+   public static Test suite() throws Exception
+   {
+      // JBAS-3604, 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 DeployXMBeanUnitTestCase("testDeployXdocletUserXMBean"));
+      suite.addTest(new DeployXMBeanUnitTestCase("testGeneratedAVCFromWrappedStandardMBeanImpl"));
+      suite.addTest(new DeployXMBeanUnitTestCase("testDeployUserXMBean"));
+      suite.addTest(new DeployXMBeanUnitTestCase("testDeployUserEmbeddedDescriptorXMBean"));
+      suite.addTest(new DeployXMBeanUnitTestCase("testUserXMBeanValues"));
+      suite.addTest(new DeployXMBeanUnitTestCase("testUserXMBeanPersistentValues"));
+      suite.addTest(new DeployXMBeanUnitTestCase("testUserXMBeanPersistentValuesWithCustomPM"));
+      suite.addTest(new DeployXMBeanUnitTestCase("testSecuredXMBean"));
+      suite.addTest(new DeployXMBeanUnitTestCase("testSecuredJndiXMBean"));
+      suite.addTest(new DeployXMBeanUnitTestCase("testPersistentJndiXMBean"));
+      suite.addTest(new DeployXMBeanUnitTestCase("testXMBeanExternalEntityImport"));
+      
+      return suite;
+   }
+      
    /** Test the xdoclet generated xmbean descriptor
     * @throws Exception on failure
     */
@@ -72,7 +96,7 @@
          undeploy(PACKAGE_NAME);
       } // end of try-finally
    }
-   
+
    /** Test the generation of AVCs from target resources that are
     * NotificationBroadcasters, too, like a class extending ServiceMBeanSupport
     * @throws Exception on failure
@@ -546,6 +570,6 @@
       {
          undeploy("xmbean-entity-import.sar");
       }
-   }   
+   }
 
-}// DeployXMBeanUnitTestCase
+}




More information about the jboss-cvs-commits mailing list