[jboss-cvs] JBossAS SVN: r77857 - 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 13:37:56 EDT 2008
Author: adrian at jboss.org
Date: 2008-09-03 13:37:56 -0400 (Wed, 03 Sep 2008)
New Revision: 77857
Added:
trunk/testsuite/src/main/org/jboss/test/jpa/test/WebLibsEARJPAUnitTestCase.java
trunk/testsuite/src/resources/jpa/weblibs/ear/
trunk/testsuite/src/resources/jpa/weblibs/ear/META-INF/
trunk/testsuite/src/resources/jpa/weblibs/ear/META-INF/application.xml
Modified:
trunk/testsuite/imports/sections/jpa.xml
Log:
Add a WEB-INF/lib version of the ear test for completeness
Modified: trunk/testsuite/imports/sections/jpa.xml
===================================================================
--- trunk/testsuite/imports/sections/jpa.xml 2008-09-03 17:30:06 UTC (rev 77856)
+++ trunk/testsuite/imports/sections/jpa.xml 2008-09-03 17:37:56 UTC (rev 77857)
@@ -45,6 +45,15 @@
</lib>
</war>
+ <jar destfile="${build.lib}/test-jpa-weblibs.ear">
+ <fileset dir="${build.resources}/jpa/weblibs/ear">
+ <include name="META-INF/**"/>
+ </fileset>
+ <fileset dir="${build.lib}">
+ <include name="test-jpa-weblibs.war"/>
+ </fileset>
+ </jar>
+
</target>
</project>
Added: trunk/testsuite/src/main/org/jboss/test/jpa/test/WebLibsEARJPAUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jpa/test/WebLibsEARJPAUnitTestCase.java (rev 0)
+++ trunk/testsuite/src/main/org/jboss/test/jpa/test/WebLibsEARJPAUnitTestCase.java 2008-09-03 17:37:56 UTC (rev 77857)
@@ -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;
+
+/**
+ * WebLibsEARJPAUnitTestCase.
+ *
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class WebLibsEARJPAUnitTestCase extends AbstractWebJPATest
+{
+ public WebLibsEARJPAUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite() throws Exception
+ {
+ return getDeploySetup(WebLibsEARJPAUnitTestCase.class, "test-jpa-weblibs.ear");
+ }
+}
Added: trunk/testsuite/src/resources/jpa/weblibs/ear/META-INF/application.xml
===================================================================
--- trunk/testsuite/src/resources/jpa/weblibs/ear/META-INF/application.xml (rev 0)
+++ trunk/testsuite/src/resources/jpa/weblibs/ear/META-INF/application.xml 2008-09-03 17:37:56 UTC (rev 77857)
@@ -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-weblibs.war</web-uri>
+ <context-root>/jpa-test</context-root>
+ </web>
+ </module>
+
+</application>
+
More information about the jboss-cvs-commits
mailing list