[jboss-cvs] JBossAS SVN: r59544 - branches/Branch_4_2/testsuite/src/main/org/jboss/test/util/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Jan 11 14:04:09 EST 2007


Author: dimitris at jboss.org
Date: 2007-01-11 14:04:06 -0500 (Thu, 11 Jan 2007)
New Revision: 59544

Modified:
   branches/Branch_4_2/testsuite/src/main/org/jboss/test/util/test/PropertyEditorsUnitTestCase.java
Log:
JBAS-3617 - the execution order of tests in this test case is important

Modified: branches/Branch_4_2/testsuite/src/main/org/jboss/test/util/test/PropertyEditorsUnitTestCase.java
===================================================================
--- branches/Branch_4_2/testsuite/src/main/org/jboss/test/util/test/PropertyEditorsUnitTestCase.java	2007-01-11 19:03:09 UTC (rev 59543)
+++ branches/Branch_4_2/testsuite/src/main/org/jboss/test/util/test/PropertyEditorsUnitTestCase.java	2007-01-11 19:04:06 UTC (rev 59544)
@@ -37,6 +37,9 @@
 
 import javax.management.ObjectName;
 
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
 import org.jboss.test.JBossTestCase;
 import org.jboss.util.propertyeditor.DateEditor;
 import org.jboss.util.propertyeditor.DocumentEditor;
@@ -107,6 +110,20 @@
       }
    }
 
+   public static Test suite() throws Exception
+   {
+      // JBAS-3617 - 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 PropertyEditorsUnitTestCase("testEditorSearchPath"));
+      suite.addTest(new PropertyEditorsUnitTestCase("testJavaLangEditors"));
+      suite.addTest(new PropertyEditorsUnitTestCase("testJBossEditors"));
+      suite.addTest(new PropertyEditorsUnitTestCase("testDateEditor"));
+      suite.addTest(new PropertyEditorsUnitTestCase("testDocumentElementEditors"));
+
+      return suite;
+   }
+   
    public PropertyEditorsUnitTestCase(String name)
    {
       super(name);




More information about the jboss-cvs-commits mailing list