tests which do not commit are not likely to fail...

This commit is contained in:
Mark Struberg 2021-04-10 12:27:07 +02:00
parent bb214f93d4
commit 2408ff7d9e
1 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@ public class TestOpenJPA2330 extends SingleEMFTestCase {
public void testOpenJPA2330() {
final EntityManager em = emf.createEntityManager();
em.getTransaction().begin();
EntityA a = new EntityA();
EntityB b = new EntityB(a);
// set back pointer
@ -49,8 +50,8 @@ public class TestOpenJPA2330 extends SingleEMFTestCase {
b.getCs().add(c);
em.persist(a);
em.persist(b);
em.persist(c);
em.getTransaction().commit();
assertEquals(LoadState.LOADED, OpenJPAPersistenceUtil.isLoaded(b, "center"));