[Jboss-cvs] JBossAS SVN: r56710 - branches/Branch_4_0/testsuite/src/main/org/jboss/test/cmp2/cmrtree/test
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Sep 11 05:29:06 EDT 2006
Author: dimitris at jboss.org
Date: 2006-09-11 05:29:04 -0400 (Mon, 11 Sep 2006)
New Revision: 56710
Modified:
branches/Branch_4_0/testsuite/src/main/org/jboss/test/cmp2/cmrtree/test/CascadeDeleteUnitTestCase.java
Log:
JBAS-3496, 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/cmrtree/test/CascadeDeleteUnitTestCase.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/cmp2/cmrtree/test/CascadeDeleteUnitTestCase.java 2006-09-11 09:16:45 UTC (rev 56709)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/cmp2/cmrtree/test/CascadeDeleteUnitTestCase.java 2006-09-11 09:29:04 UTC (rev 56710)
@@ -1,43 +1,49 @@
/*
- * 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.cmrtree.test;
import junit.framework.Test;
+import junit.framework.TestSuite;
+import net.sourceforge.junitejb.EJBTestCase;
+
+import org.jboss.test.JBossTestCase;
import org.jboss.test.cmp2.cmrtree.ejb.Facade;
import org.jboss.test.cmp2.cmrtree.ejb.FacadeUtil;
-import org.jboss.test.JBossTestCase;
-import net.sourceforge.junitejb.EJBTestCase;
-
/**
* @author <a href="mailto:alex at jboss.org">Alexey Loubyansky</a>
* @version <tt>$Revision$</tt>
*/
-public class CascadeDeleteUnitTestCase
- extends EJBTestCase
+public class CascadeDeleteUnitTestCase extends EJBTestCase
{
public static Test suite() throws Exception
{
- return JBossTestCase.getDeploySetup(CascadeDeleteUnitTestCase.class, "cmp2-cmrtree.jar");
+ // JBAS-3496, 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 CascadeDeleteUnitTestCase("testCascadeDelete"));
+ suite.addTest(new CascadeDeleteUnitTestCase("testUpdateCMPFieldToNullOnRelatedInstance"));
+
+ return JBossTestCase.getDeploySetup(suite, "cmp2-cmrtree.jar");
}
public CascadeDeleteUnitTestCase(String s)
More information about the jboss-cvs-commits
mailing list