[jboss-cvs] JBossAS SVN: r77855 - in trunk/testsuite: src/main/org/jboss/test/jpa/test and 3 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Sep 3 12:21:55 EDT 2008


Author: adrian at jboss.org
Date: 2008-09-03 12:21:55 -0400 (Wed, 03 Sep 2008)
New Revision: 77855

Added:
   trunk/testsuite/src/main/org/jboss/test/jpa/test/WebClassesEARJPAUnitTestCase.java
   trunk/testsuite/src/resources/jpa/webclasses/ear/
   trunk/testsuite/src/resources/jpa/webclasses/ear/META-INF/
   trunk/testsuite/src/resources/jpa/webclasses/ear/META-INF/application.xml
Modified:
   trunk/testsuite/imports/sections/jpa.xml
Log:
Add a test for a webapp inside ear with a WEB-INF/classes/META-INF/persistence.xml

Modified: trunk/testsuite/imports/sections/jpa.xml
===================================================================
--- trunk/testsuite/imports/sections/jpa.xml	2008-09-03 16:18:40 UTC (rev 77854)
+++ trunk/testsuite/imports/sections/jpa.xml	2008-09-03 16:21:55 UTC (rev 77855)
@@ -14,6 +14,15 @@
          </classes>
       </war>
 
+      <jar destfile="${build.lib}/test-jpa-webclasses.ear">
+         <fileset dir="${build.resources}/jpa/webclasses/ear">
+            <include name="META-INF/**"/>
+         </fileset>
+         <fileset dir="${build.lib}">
+            <include name="test-jpa-webclasses.war"/>
+         </fileset>
+      </jar>
+
       <jar destfile="${build.lib}/test-jpa-weblibs.jar">
          <fileset dir="${build.resources}/jpa/weblibs">
             <include name="META-INF/**"/>

Added: trunk/testsuite/src/main/org/jboss/test/jpa/test/WebClassesEARJPAUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jpa/test/WebClassesEARJPAUnitTestCase.java	                        (rev 0)
+++ trunk/testsuite/src/main/org/jboss/test/jpa/test/WebClassesEARJPAUnitTestCase.java	2008-09-03 16:21:55 UTC (rev 77855)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2008, Red Hat Middleware LLC, and individual contributors
+* 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.jpa.test;
+
+import junit.framework.Test;
+
+/**
+ * WebClassesEARJPAUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class WebClassesEARJPAUnitTestCase extends AbstractWebJPATest
+{
+   public WebClassesEARJPAUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static Test suite() throws Exception
+   {
+      return getDeploySetup(WebClassesEARJPAUnitTestCase.class, "test-jpa-webclasses.ear");
+   }
+}

Added: trunk/testsuite/src/resources/jpa/webclasses/ear/META-INF/application.xml
===================================================================
--- trunk/testsuite/src/resources/jpa/webclasses/ear/META-INF/application.xml	                        (rev 0)
+++ trunk/testsuite/src/resources/jpa/webclasses/ear/META-INF/application.xml	2008-09-03 16:21:55 UTC (rev 77855)
@@ -0,0 +1,20 @@
+<?xml version='1.0' encoding='UTF-8'?>
+
+<application version="1.4"
+             xmlns="http://java.sun.com/xml/ns/j2ee" 
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
+             xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
+                                 http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"
+>
+
+   <display-name>JPA Test</display-name>
+
+   <module>
+      <web>
+         <web-uri>test-jpa-webclasses.war</web-uri>
+        <context-root>/jpa-test</context-root>
+      </web>
+   </module>
+
+</application>
+




More information about the jboss-cvs-commits mailing list