openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curti...@apache.org
Subject svn commit: r1392928 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/generationtype/TestTableGeneratorMultithreadedInitialization.java
Date Tue, 02 Oct 2012 14:33:47 GMT
Author: curtisr7
Date: Tue Oct  2 14:33:47 2012
New Revision: 1392928

URL: http://svn.apache.org/viewvc?rev=1392928&view=rev
Log:
OPENJPA-2269: Fix testcase.

Modified:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/generationtype/TestTableGeneratorMultithreadedInitialization.java

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/generationtype/TestTableGeneratorMultithreadedInitialization.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/generationtype/TestTableGeneratorMultithreadedInitialization.java?rev=1392928&r1=1392927&r2=1392928&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/generationtype/TestTableGeneratorMultithreadedInitialization.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/generationtype/TestTableGeneratorMultithreadedInitialization.java
Tue Oct  2 14:33:47 2012
@@ -24,18 +24,9 @@ import javax.persistence.EntityManagerFa
 import org.apache.openjpa.persistence.test.AbstractPersistenceTestCase;
 
 public class TestTableGeneratorMultithreadedInitialization extends AbstractPersistenceTestCase
{
-    Object[] props = new Object[] { Dog.class
-    // , "openjpa.Log", "SQL=trace"
-        };
+    Object[] props = new Object[] { Dog.class, CLEAR_TABLES };
 
     public void setUp() throws Exception {
-        EntityManagerFactory emf = createNamedEMF(getPersistenceUnitName(), props);
-        EntityManager em = emf.createEntityManager();
-        em.getTransaction().begin();
-        em.createNativeQuery("DROP TABLE ID_Gen").executeUpdate();
-        em.createNativeQuery("DROP TABLE dog").executeUpdate();
-        em.getTransaction().commit();
-        emf.close();
     }
 
     public void test() throws Exception {



Mime
View raw message