openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r1021925 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/stats/TestStatistics.java
Date Tue, 12 Oct 2010 21:13:32 GMT
Author: dwoods
Date: Tue Oct 12 21:13:32 2010
New Revision: 1021925

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

Modified:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/stats/TestStatistics.java

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/stats/TestStatistics.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/stats/TestStatistics.java?rev=1021925&r1=1021924&r2=1021925&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/stats/TestStatistics.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/stats/TestStatistics.java
Tue Oct 12 21:13:32 2010
@@ -92,6 +92,8 @@ public class TestStatistics extends Sing
 			assertEquals(stats.getReadCount(), stats.getHitCount());
 			assertEquals(0, stats.getWriteCount());
 		}
+        em.getTransaction().commit();
+        em.close();
 	}
 
 	void assertStatistics(CacheStatistics stats, long[] expected) {



Mime
View raw message