You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by dw...@apache.org on 2010/10/08 19:40:53 UTC

svn commit: r1005920 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/batch/exception/TestBatchLimitException.java

Author: dwoods
Date: Fri Oct  8 17:40:53 2010
New Revision: 1005920

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

Modified:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/batch/exception/TestBatchLimitException.java

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/batch/exception/TestBatchLimitException.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/batch/exception/TestBatchLimitException.java?rev=1005920&r1=1005919&r2=1005920&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/batch/exception/TestBatchLimitException.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/batch/exception/TestBatchLimitException.java Fri Oct  8 17:40:53 2010
@@ -25,7 +25,7 @@ import org.apache.openjpa.jdbc.conf.JDBC
 import org.apache.openjpa.jdbc.sql.DBDictionary;
 import org.apache.openjpa.jdbc.sql.OracleDictionary;
 import org.apache.openjpa.persistence.OpenJPAEntityManagerFactorySPI;
-import org.apache.openjpa.persistence.test.PersistenceTestCase;
+import org.apache.openjpa.persistence.test.AbstractPersistenceTestCase;
 import org.apache.openjpa.util.ExceptionInfo;
 
 //This test was created for OPENJPA-1550.  In this issue the user was
@@ -34,7 +34,7 @@ import org.apache.openjpa.util.Exception
 //'params' listed in the prepared statement were missing.  This test will set
 //various batch limits and verify that with the fix to 1550, the correct
 //'failed object' and prepared statement is returned. 
-public class TestBatchLimitException extends PersistenceTestCase {
+public class TestBatchLimitException extends AbstractPersistenceTestCase {
 
     static Ent1 expectedFailedObject;
     static Ent1 expectedFailedObjectOracle;
@@ -105,7 +105,7 @@ public class TestBatchLimitException ext
                 em2.getTransaction().rollback();
             }
             em2.close();
-            emf.close();
+            closeEMF(emf);
         }
     }
 
@@ -139,7 +139,7 @@ public class TestBatchLimitException ext
                 em2.getTransaction().rollback();
             }
             em2.close();
-            emf.close();
+            closeEMF(emf);
         }
     }
 
@@ -187,7 +187,7 @@ public class TestBatchLimitException ext
                 em2.getTransaction().rollback();
             }
             em2.close();
-            emf.close();
+            closeEMF(emf);
         }
     }
 
@@ -242,7 +242,7 @@ public class TestBatchLimitException ext
                 em2.getTransaction().rollback();
             }
             em2.close();
-            emf.close();
+            closeEMF(emf);
         }
     }
 
@@ -283,7 +283,7 @@ public class TestBatchLimitException ext
                 em.getTransaction().rollback();
             }
             em.close();
-            emf.close();
+            closeEMF(emf);
         }
     }
 
@@ -326,7 +326,7 @@ public class TestBatchLimitException ext
                 em2.getTransaction().rollback();
             }
             em2.close();
-            emf.close();
+            closeEMF(emf);
         }
     }