openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r1005844 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/event/TestSJVMRemoteCommitProvider.java
Date Fri, 08 Oct 2010 14:23:54 GMT
Author: dwoods
Date: Fri Oct  8 14:23:53 2010
New Revision: 1005844

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

Modified:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/event/TestSJVMRemoteCommitProvider.java

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/event/TestSJVMRemoteCommitProvider.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/event/TestSJVMRemoteCommitProvider.java?rev=1005844&r1=1005843&r2=1005844&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/event/TestSJVMRemoteCommitProvider.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/event/TestSJVMRemoteCommitProvider.java
Fri Oct  8 14:23:53 2010
@@ -56,6 +56,14 @@ extends AbstractCachedEMFTestCase {
             listen2 = new ListenerImpl());
     }
 
+    public void tearDown() throws Exception {
+        super.tearDown();
+        clear(emf1);
+        closeEMF(emf1);
+        clear(emf2);
+        closeEMF(emf2);
+    }
+        
     public void testSJVMRemoteCommitProvider() {
         assertNotSame(JPAFacadeHelper.toBrokerFactory(emf1),
             JPAFacadeHelper.toBrokerFactory(emf2));



Mime
View raw message