[jboss-cvs] JBossAS SVN: r59546 - trunk/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:06:16 EST 2007
Author: dimitris at jboss.org
Date: 2007-01-11 14:06:14 -0500 (Thu, 11 Jan 2007)
New Revision: 59546
Modified:
trunk/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: trunk/testsuite/src/main/org/jboss/test/util/test/PropertyEditorsUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/util/test/PropertyEditorsUnitTestCase.java 2007-01-11 19:05:34 UTC (rev 59545)
+++ trunk/testsuite/src/main/org/jboss/test/util/test/PropertyEditorsUnitTestCase.java 2007-01-11 19:06:14 UTC (rev 59546)
@@ -1,8 +1,8 @@
/*
- * 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.
+ * 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
@@ -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