openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r1005841 - in /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance: TestEnhancementConfiguration.java TestEnhancementWithMultiplePUs.java
Date Fri, 08 Oct 2010 14:19:52 GMT
Author: dwoods
Date: Fri Oct  8 14:19:52 2010
New Revision: 1005841

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

Modified:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/TestEnhancementConfiguration.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/TestEnhancementWithMultiplePUs.java

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/TestEnhancementConfiguration.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/TestEnhancementConfiguration.java?rev=1005841&r1=1005840&r2=1005841&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/TestEnhancementConfiguration.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/TestEnhancementConfiguration.java
Fri Oct  8 14:19:52 2010
@@ -18,19 +18,20 @@
  */
 package org.apache.openjpa.enhance;
 
-import javax.persistence.EntityManager;
-
 import org.apache.openjpa.persistence.test.SingleEMFTestCase;
 import org.apache.openjpa.util.ImplHelper;
 
 public class TestEnhancementConfiguration
     extends SingleEMFTestCase {
 
+    @Override
+    public void setUp() throws Exception {
+        setUp("openjpa.RuntimeUnenhancedClasses", "unsupported",
+            UnenhancedFieldAccess.class, CLEAR_TABLES);
+    }
+    
     public void testEnhancementConfiguration() {
         try {
-            emf = createEMF(
-                "openjpa.RuntimeUnenhancedClasses", "unsupported",
-                UnenhancedFieldAccess.class, CLEAR_TABLES);
             assertFalse(ImplHelper.isManagedType(emf.getConfiguration(),
                 UnenhancedFieldAccess.class));
             emf.createEntityManager().close();

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/TestEnhancementWithMultiplePUs.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/TestEnhancementWithMultiplePUs.java?rev=1005841&r1=1005840&r2=1005841&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/TestEnhancementWithMultiplePUs.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/TestEnhancementWithMultiplePUs.java
Fri Oct  8 14:19:52 2010
@@ -32,7 +32,6 @@ import org.apache.openjpa.lib.util.J2DoP
 import org.apache.openjpa.lib.util.Options;
 import org.apache.openjpa.meta.MetaDataRepository;
 import org.apache.openjpa.persistence.test.AbstractCachedEMFTestCase;
-import org.apache.openjpa.persistence.test.PersistenceTestCase;
 import serp.bytecode.BCClass;
 import serp.bytecode.Project;
 



Mime
View raw message