openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r1005959 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/cache/jpa/AbstractCacheModeTestCase.java
Date Fri, 08 Oct 2010 19:02:17 GMT
Author: dwoods
Date: Fri Oct  8 19:02:17 2010
New Revision: 1005959

URL: http://svn.apache.org/viewvc?rev=1005959&view=rev
Log:
make sure tests cleanup EMs and EMFs

Modified:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/cache/jpa/AbstractCacheModeTestCase.java

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/cache/jpa/AbstractCacheModeTestCase.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/cache/jpa/AbstractCacheModeTestCase.java?rev=1005959&r1=1005958&r2=1005959&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/cache/jpa/AbstractCacheModeTestCase.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/cache/jpa/AbstractCacheModeTestCase.java
Fri Oct  8 19:02:17 2010
@@ -372,6 +372,7 @@ public abstract class AbstractCacheModeT
             em.refresh(e2);
             assertEquals(e1Version + 1, e1.getVersion());
             assertEquals(e2Version + 1, e2.getVersion());
+            em.close();
         }
     }
 



Mime
View raw message