geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r631819 - in /geronimo/server/trunk/plugins/openjpa/geronimo-persistence-jpa10: pom.xml src/test/java/org/apache/geronimo/persistence/PersistenceUnitGBeanTest.java
Date Thu, 28 Feb 2008 02:12:55 GMT
Author: djencks
Date: Wed Feb 27 18:12:54 2008
New Revision: 631819

URL: http://svn.apache.org/viewvc?rev=631819&view=rev
Log:
GERONIMO-3880 simple test for non-null jarFileUrls

Modified:
    geronimo/server/trunk/plugins/openjpa/geronimo-persistence-jpa10/pom.xml
    geronimo/server/trunk/plugins/openjpa/geronimo-persistence-jpa10/src/test/java/org/apache/geronimo/persistence/PersistenceUnitGBeanTest.java

Modified: geronimo/server/trunk/plugins/openjpa/geronimo-persistence-jpa10/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/openjpa/geronimo-persistence-jpa10/pom.xml?rev=631819&r1=631818&r2=631819&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/openjpa/geronimo-persistence-jpa10/pom.xml (original)
+++ geronimo/server/trunk/plugins/openjpa/geronimo-persistence-jpa10/pom.xml Wed Feb 27 18:12:54
2008
@@ -50,6 +50,11 @@
             <groupId>org.apache.geronimo.specs</groupId>
             <artifactId>geronimo-jpa_3.0_spec</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.apache.openjpa</groupId>
+            <artifactId>openjpa</artifactId>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
 
 </project>

Modified: geronimo/server/trunk/plugins/openjpa/geronimo-persistence-jpa10/src/test/java/org/apache/geronimo/persistence/PersistenceUnitGBeanTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/openjpa/geronimo-persistence-jpa10/src/test/java/org/apache/geronimo/persistence/PersistenceUnitGBeanTest.java?rev=631819&r1=631818&r2=631819&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/openjpa/geronimo-persistence-jpa10/src/test/java/org/apache/geronimo/persistence/PersistenceUnitGBeanTest.java
(original)
+++ geronimo/server/trunk/plugins/openjpa/geronimo-persistence-jpa10/src/test/java/org/apache/geronimo/persistence/PersistenceUnitGBeanTest.java
Wed Feb 27 18:12:54 2008
@@ -17,6 +17,10 @@
 
 package org.apache.geronimo.persistence;
 
+import java.io.File;
+
+import javax.persistence.spi.PersistenceUnitInfo;
+
 import junit.framework.TestCase;
 
 /**
@@ -26,5 +30,24 @@
 
     public void testNoArgConstructor() throws Exception {
         new PersistenceUnitGBean();
+    }
+    
+    public void testNonNullJavaFileUrls() throws Exception {
+        PersistenceUnitGBean gbean = new PersistenceUnitGBean("foo",
+                null,
+                "JTA",
+                null,
+                null,
+                null,
+                null,
+                "/foo/bar/Root",
+                null,
+                true,
+                null,
+                null,
+                null,
+                new File("/foo/bar/Root").toURL(),
+                getClass().getClassLoader());
+        assertNotNull(gbean.getJarFileUrls());
     }
 }



Mime
View raw message