db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject svn commit: r426846 - /db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/api/persistencemanager/GetPersistenceManagerFactory.java
Date Sat, 29 Jul 2006 22:41:26 GMT
Author: mbo
Date: Sat Jul 29 15:41:25 2006
New Revision: 426846

URL: http://svn.apache.org/viewvc?rev=426846&view=rev
Log:
JDO-380: Missing pm.close() in GetPersistenceManagerFactory

Modified:
    db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/api/persistencemanager/GetPersistenceManagerFactory.java

Modified: db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/api/persistencemanager/GetPersistenceManagerFactory.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/api/persistencemanager/GetPersistenceManagerFactory.java?rev=426846&r1=426845&r2=426846&view=diff
==============================================================================
--- db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/api/persistencemanager/GetPersistenceManagerFactory.java
(original)
+++ db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/api/persistencemanager/GetPersistenceManagerFactory.java
Sat Jul 29 15:41:25 2006
@@ -53,11 +53,14 @@
     /** */
     public void testGetPersistenceManagerFactory() {
         PersistenceManagerFactory pmf = getPMF();
-        PersistenceManager pm = pmf.getPersistenceManager();
+        // Note, getPM uses the pmf returned by getPMF
+        PersistenceManager pm = getPM(); 
         PersistenceManagerFactory pmf2 = pm.getPersistenceManagerFactory();
+        pm.close();
         if (pmf2 != pmf) {
             fail(ASSERTION_FAILED,
-                 "pm.getPMF() returned different pmf, expected " + pmf + ", got " + pmf2);
+                 "pm.getPMF() returned different pmf, expected " + 
+                 pmf + ", got " + pmf2);
         }
     }
 }



Mime
View raw message