mirror of https://github.com/apache/openjpa.git
tests which do not commit are not likely to fail...
This commit is contained in:
parent
bb214f93d4
commit
2408ff7d9e
|
@ -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"));
|
||||
|
||||
|
|
Loading…
Reference in New Issue