[Jboss-cvs] JBossAS SVN: r56841 - trunk/testsuite/src/main/org/jboss/test/compatibility/test

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Sep 14 08:52:13 EDT 2006


Author: dimitris at jboss.org
Date: 2006-09-14 08:52:11 -0400 (Thu, 14 Sep 2006)
New Revision: 56841

Modified:
   trunk/testsuite/src/main/org/jboss/test/compatibility/test/SerialVersionUIDUnitTestCase.java
Log:
JBAS-3600, 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/compatibility/test/SerialVersionUIDUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/compatibility/test/SerialVersionUIDUnitTestCase.java	2006-09-14 12:40:54 UTC (rev 56840)
+++ trunk/testsuite/src/main/org/jboss/test/compatibility/test/SerialVersionUIDUnitTestCase.java	2006-09-14 12:52:11 UTC (rev 56841)
@@ -1,47 +1,48 @@
 /*
-  * 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.compatibility.test;
 
+import java.io.File;
 import java.io.FileInputStream;
+import java.io.IOException;
 import java.io.ObjectInputStream;
-import java.io.File;
-import java.io.IOException;
+import java.util.Iterator;
 import java.util.Map;
-import java.util.Iterator;
 
+import junit.framework.Test;
 import junit.framework.TestCase;
 import junit.framework.TestSuite;
-import junit.framework.Test;
+
+import org.jboss.tools.ClassVersionInfo;
 import org.jboss.tools.SerialVersionUID;
-import org.jboss.tools.ClassVersionInfo;
 
 
-/** Tests of serial version uid compatibility across jboss versions
+/**
+ * Tests of serial version uid compatibility across jboss versions
  *
- *  @author Scott.Stark at jboss.org
- *  @version $Revision$
+ * @author Scott.Stark at jboss.org
+ * @version $Revision$
  */
-public class SerialVersionUIDUnitTestCase
-      extends TestCase
+public class SerialVersionUIDUnitTestCase extends TestCase
 {
    static Map currentClassInfoMap;
 
@@ -179,10 +180,15 @@
          jbossHome);
       return classInfoMap;
    }
+   
    public static Test suite() throws Exception
    {
+      // JBAS-3600, 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 TestSuite(SerialVersionUIDUnitTestCase.class));
+      suite.addTest(new SerialVersionUIDUnitTestCase("test401Compatibility"));
+      suite.addTest(new SerialVersionUIDUnitTestCase("testJ2EERI141Compatibility"));
+
       return suite;
    }
 




More information about the jboss-cvs-commits mailing list