[Jboss-cvs] JBossAS SVN: r56708 - branches/Branch_4_0/testsuite/src/main/org/jboss/test/cmp2/lob

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Sep 11 05:14:58 EDT 2006


Author: dimitris at jboss.org
Date: 2006-09-11 05:14:56 -0400 (Mon, 11 Sep 2006)
New Revision: 56708

Modified:
   branches/Branch_4_0/testsuite/src/main/org/jboss/test/cmp2/lob/LOBUnitTestCase.java
Log:
JBAS-3497, the execution order of tests in this test case is important so it must be defined explicitly when running under some JVMs

Modified: branches/Branch_4_0/testsuite/src/main/org/jboss/test/cmp2/lob/LOBUnitTestCase.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/cmp2/lob/LOBUnitTestCase.java	2006-09-11 04:50:43 UTC (rev 56707)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/cmp2/lob/LOBUnitTestCase.java	2006-09-11 09:14:56 UTC (rev 56708)
@@ -1,45 +1,44 @@
 /*
-* 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.cmp2.lob;
 
-
 import java.io.ByteArrayOutputStream;
+import java.io.InputStream;
 import java.io.StringWriter;
-import java.io.InputStream;
+import java.util.Arrays;
+import java.util.List;
 import java.util.Map;
 import java.util.Set;
-import java.util.List;
-import java.util.Arrays;
 
+import javax.naming.InitialContext;
 import javax.rmi.PortableRemoteObject;
-import javax.naming.InitialContext;
 
+import junit.framework.Test;
+import junit.framework.TestSuite;
 import net.sourceforge.junitejb.EJBTestCase;
-import junit.framework.Test;
 
 import org.jboss.logging.Logger;
 import org.jboss.test.JBossTestCase;
 
-
 /**
  * A test suite to check JBoss data mapping to/from Large Binary Objects (LOBs).
  *
@@ -75,10 +74,32 @@
 
    private static final Logger log = Logger.getLogger(LOBUnitTestCase.class);
 
-   public static Test suite()
-      throws Exception
+   public static Test suite() throws Exception
    {
-      return JBossTestCase.getDeploySetup(LOBUnitTestCase.class, "cmp2-lob.jar");
+      // JBAS-3497, 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 LOBUnitTestCase("testCreate0"));
+      suite.addTest(new LOBUnitTestCase("testNullLoad"));
+      suite.addTest(new LOBUnitTestCase("testCreate1"));
+      suite.addTest(new LOBUnitTestCase("testLoad1"));
+      suite.addTest(new LOBUnitTestCase("testCreate2"));
+      suite.addTest(new LOBUnitTestCase("testLoad2"));
+      suite.addTest(new LOBUnitTestCase("testCreate3"));
+      suite.addTest(new LOBUnitTestCase("testLoad3"));
+      suite.addTest(new LOBUnitTestCase("testCreate4"));
+      suite.addTest(new LOBUnitTestCase("testLoad4"));
+      suite.addTest(new LOBUnitTestCase("testTextLoad"));
+      suite.addTest(new LOBUnitTestCase("testBinaryLoad"));
+      suite.addTest(new LOBUnitTestCase("testMapCMPField"));
+      suite.addTest(new LOBUnitTestCase("testSetCMPField"));
+      suite.addTest(new LOBUnitTestCase("testListCMPField"));
+      suite.addTest(new LOBUnitTestCase("testBinaryDataField"));
+      suite.addTest(new LOBUnitTestCase("testValueHolder"));
+      suite.addTest(new LOBUnitTestCase("testCleanGetValueHolder"));
+      suite.addTest(new LOBUnitTestCase("testStateFactoryValueHolder"));
+      
+      return JBossTestCase.getDeploySetup(suite, "cmp2-lob.jar");
    }
 
    // Constructors --------------------------------------------------




More information about the jboss-cvs-commits mailing list