[jboss-cvs] JBossAS SVN: r61738 - in branches/Branch_4_2/testsuite: src/main/org/jboss/test/cmp2/enums/test and 3 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Mar 27 10:22:32 EDT 2007


Author: alex.loubyansky at jboss.com
Date: 2007-03-27 10:22:32 -0400 (Tue, 27 Mar 2007)
New Revision: 61738

Added:
   branches/Branch_4_2/testsuite/src/main/org/jboss/test/cmp2/enums/test/JDBC2PmEnumUnitTestCase.java
   branches/Branch_4_2/testsuite/src/main/org/jboss/test/cmp2/jbas3541/JDBC2PmJBAS3541UnitTestCase.java
   branches/Branch_4_2/testsuite/src/resources/cmp2/enums/META-INF/jdbc2pm-jboss.xml
   branches/Branch_4_2/testsuite/src/resources/cmp2/jbas3541/META-INF/jdbc2pm-jboss.xml
Modified:
   branches/Branch_4_2/testsuite/imports/sections/cmp.xml
Log:
JBAS-3975 tests

Modified: branches/Branch_4_2/testsuite/imports/sections/cmp.xml
===================================================================
--- branches/Branch_4_2/testsuite/imports/sections/cmp.xml	2007-03-27 14:16:36 UTC (rev 61737)
+++ branches/Branch_4_2/testsuite/imports/sections/cmp.xml	2007-03-27 14:22:32 UTC (rev 61738)
@@ -322,6 +322,28 @@
          <zipfileset src="${junit.junit.lib}/junit.jar"
             includes="junit/**/*.*"/>
       </jar>
+      <copy file="${build.resources}/cmp2/jbas3541/META-INF/jboss.xml"
+         tofile="${build.resources}/cmp2/jbas3541/META-INF/original-jboss.xml"/>
+      <copy file="${build.resources}/cmp2/jbas3541/META-INF/jdbc2pm-jboss.xml"
+         tofile="${build.resources}/cmp2/jbas3541/META-INF/jboss.xml"
+         overwrite="true"/>
+      <jar jarfile="${build.lib}/cmp2-jdbc2pm-jbas3541.jar">
+         <fileset dir="${build.classes}">
+            <patternset refid="common.test.client.classes"/>
+            <include name="org/jboss/test/cmp2/jbas3541/**"/>
+         </fileset>
+         <fileset dir="${build.resources}/cmp2/jbas3541">
+            <include name="**/*.*"/>
+         </fileset>
+         <zipfileset src="${junitejb.junitejb.lib}/junitejb.jar"
+            includes="net/**/*.*"/>
+         <zipfileset src="${junit.junit.lib}/junit.jar"
+            includes="junit/**/*.*"/>
+      </jar>
+      <copy
+         file="${build.resources}/cmp2/jbas3541/META-INF/original-jboss.xml"
+         tofile="${build.resources}/cmp2/jbas3541/META-INF/jboss.xml"
+         overwrite="true"/>
 
       <!-- build cmp2-jbas979.jar -->
       <jar destfile="${build.lib}/cmp2-jbas979.jar">
@@ -409,6 +431,29 @@
          </zipfileset>
       </jar>
       
+      <copy file="${build.resources}/cmp2/enums/META-INF/jboss.xml"
+         tofile="${build.resources}/cmp2/enums/META-INF/original-jboss.xml"/>
+      <copy file="${build.resources}/cmp2/enums/META-INF/jdbc2pm-jboss.xml"
+         tofile="${build.resources}/cmp2/enums/META-INF/jboss.xml"
+         overwrite="true"/>
+      <jar jarfile="${build.lib}/cmp2-jdbc2pm-enum.jar">
+         <fileset dir="${build.classes}">
+            <patternset refid="common.test.client.classes"/>
+            <include name="org/jboss/test/cmp2/enums/**"/>
+         </fileset>
+         <fileset dir="${build.resources}/cmp2/enums">
+            <include name="**/*.*"/>
+         </fileset>
+         <zipfileset src="${junitejb.junitejb.lib}/junitejb.jar"
+            includes="net/**/*.*"/>
+         <zipfileset src="${junit.junit.lib}/junit.jar"
+            includes="junit/**/*.*"/>
+      </jar>
+      <copy
+         file="${build.resources}/cmp2/enums/META-INF/original-jboss.xml"
+         tofile="${build.resources}/cmp2/enums/META-INF/jboss.xml"
+         overwrite="true"/>
+
       <!-- build cmp2-cmrtansaction.jar -->
       <jar destfile="${build.lib}/cmp2-cmrtransaction.jar">
          <fileset dir="${build.classes}">

Added: branches/Branch_4_2/testsuite/src/main/org/jboss/test/cmp2/enums/test/JDBC2PmEnumUnitTestCase.java
===================================================================
--- branches/Branch_4_2/testsuite/src/main/org/jboss/test/cmp2/enums/test/JDBC2PmEnumUnitTestCase.java	                        (rev 0)
+++ branches/Branch_4_2/testsuite/src/main/org/jboss/test/cmp2/enums/test/JDBC2PmEnumUnitTestCase.java	2007-03-27 14:22:32 UTC (rev 61738)
@@ -0,0 +1,43 @@
+/*
+  * 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.enums.test;
+
+import junit.framework.Test;
+import org.jboss.test.JBossTestCase;
+
+/**
+ *
+ * @author <a href="mailto:alex at jboss.org">Alexey Loubyansky</a>
+ */
+public class JDBC2PmEnumUnitTestCase
+   extends EnumUnitTestCase
+{
+   public static Test suite() throws Exception
+   {
+      return JBossTestCase.getDeploySetup(JDBC2PmEnumUnitTestCase.class, "cmp2-jdbc2pm-enum.jar");
+   }
+
+   public JDBC2PmEnumUnitTestCase(String s)
+   {
+      super(s);
+   }
+}

Added: branches/Branch_4_2/testsuite/src/main/org/jboss/test/cmp2/jbas3541/JDBC2PmJBAS3541UnitTestCase.java
===================================================================
--- branches/Branch_4_2/testsuite/src/main/org/jboss/test/cmp2/jbas3541/JDBC2PmJBAS3541UnitTestCase.java	                        (rev 0)
+++ branches/Branch_4_2/testsuite/src/main/org/jboss/test/cmp2/jbas3541/JDBC2PmJBAS3541UnitTestCase.java	2007-03-27 14:22:32 UTC (rev 61738)
@@ -0,0 +1,43 @@
+/*
+  * 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.jbas3541;
+
+import org.jboss.test.JBossTestCase;
+import junit.framework.Test;
+
+/**
+ * @author <a href="mailto:alex at jboss.org">Alexey Loubyansky</a>
+ * @version <tt>$Revision: 44174 $</tt>
+ */
+public class JDBC2PmJBAS3541UnitTestCase
+   extends JBAS3541UnitTestCase
+{
+   public static Test suite() throws Exception
+   {
+      return JBossTestCase.getDeploySetup(JDBC2PmJBAS3541UnitTestCase.class, "cmp2-jdbc2pm-jbas3541.jar");
+   }
+
+   public JDBC2PmJBAS3541UnitTestCase(String methodName)
+   {
+      super(methodName);
+   }
+}

Added: branches/Branch_4_2/testsuite/src/resources/cmp2/enums/META-INF/jdbc2pm-jboss.xml
===================================================================
--- branches/Branch_4_2/testsuite/src/resources/cmp2/enums/META-INF/jdbc2pm-jboss.xml	                        (rev 0)
+++ branches/Branch_4_2/testsuite/src/resources/cmp2/enums/META-INF/jdbc2pm-jboss.xml	2007-03-27 14:22:32 UTC (rev 61738)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.2//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd">
+
+<jboss>
+
+   <enterprise-beans>
+
+      <entity>
+         <ejb-name>Child</ejb-name>
+         <local-jndi-name>ChildLocal</local-jndi-name>
+         <configuration-name>cmp2.x jdbc2 pm</configuration-name>
+      </entity>
+
+      <session>
+         <ejb-name>Facade</ejb-name>
+         <jndi-name>Facade</jndi-name>
+      </session>
+      <session>
+         <ejb-name>EJBTestRunnerEJB</ejb-name>
+         <jndi-name>ejb/EJBTestRunner</jndi-name>
+      </session>
+
+   </enterprise-beans>
+
+</jboss>

Added: branches/Branch_4_2/testsuite/src/resources/cmp2/jbas3541/META-INF/jdbc2pm-jboss.xml
===================================================================
--- branches/Branch_4_2/testsuite/src/resources/cmp2/jbas3541/META-INF/jdbc2pm-jboss.xml	                        (rev 0)
+++ branches/Branch_4_2/testsuite/src/resources/cmp2/jbas3541/META-INF/jdbc2pm-jboss.xml	2007-03-27 14:22:32 UTC (rev 61738)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<jboss>
+   <enterprise-beans>
+      <entity>
+         <ejb-name>A</ejb-name>
+         <local-jndi-name>ALocal</local-jndi-name>
+         <configuration-name>cmp2.x jdbc2 pm</configuration-name>
+      </entity>
+      <session>
+         <ejb-name>EJBTestRunnerEJB</ejb-name>
+         <jndi-name>ejb/EJBTestRunner</jndi-name>
+      </session>
+   </enterprise-beans>
+</jboss>




More information about the jboss-cvs-commits mailing list