db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject svn commit: r1821565 - /db/jdo/trunk/api/test/java/javax/jdo/PMFMapMapTest.java
Date Thu, 18 Jan 2018 22:11:18 GMT
Author: mbo
Date: Thu Jan 18 22:11:18 2018
New Revision: 1821565

URL: http://svn.apache.org/viewvc?rev=1821565&view=rev
Log:
JDO-769: Revise PMFMapMapTest test cases using two class loaders

Modified:
    db/jdo/trunk/api/test/java/javax/jdo/PMFMapMapTest.java

Modified: db/jdo/trunk/api/test/java/javax/jdo/PMFMapMapTest.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/test/java/javax/jdo/PMFMapMapTest.java?rev=1821565&r1=1821564&r2=1821565&view=diff
==============================================================================
--- db/jdo/trunk/api/test/java/javax/jdo/PMFMapMapTest.java (original)
+++ db/jdo/trunk/api/test/java/javax/jdo/PMFMapMapTest.java Thu Jan 18 22:11:18 2018
@@ -395,10 +395,11 @@ public class PMFMapMapTest extends Abstr
                 expectedDriverNameWithOverrides);
 
         setupResourceClassLoader(resourceDir);
+        ClassLoader pmfLoader = getClass().getClassLoader();
 
         try {
             pmf = JDOHelper.getPersistenceManagerFactory(overrides, PMFName,
-                    resourceClassLoader, resourceClassLoader);
+                    resourceClassLoader, pmfLoader);
         } catch (JDOFatalUserException ex) {
             fail("Failed to find PersistenceManagerFactoryClass. "
                     + ex.getMessage());
@@ -472,10 +473,11 @@ public class PMFMapMapTest extends Abstr
     public void testNamedPMFWithTwoLoaders() throws IOException {
 
         setupResourceClassLoader(resourceDir);
+        ClassLoader pmfLoader = getClass().getClassLoader();
 
         try {
             pmf = JDOHelper.getPersistenceManagerFactory(PMFName,
-                    resourceClassLoader, resourceClassLoader);
+                    resourceClassLoader, pmfLoader);
         } catch (JDOFatalUserException ex) {
             fail("Failed to find PersistenceManagerFactoryClass. "
                     + ex.getMessage());



Mime
View raw message