mirror of https://github.com/apache/openjpa.git
OPENJPA-2269: Fix testcase.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1392928 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9f128e3286
commit
3a6ffd834f
|
@ -24,18 +24,9 @@ import javax.persistence.EntityManagerFactory;
|
|||
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 {
|
||||
|
|
Loading…
Reference in New Issue