mirror of https://github.com/apache/openjpa.git
make sure tests cleanup EMs and EMFs
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1005864 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
11969d128d
commit
274de20680
|
@ -43,5 +43,6 @@ public class TestMixedMappingLocation extends SingleEMFTestCase {
|
||||||
*/
|
*/
|
||||||
public void testMixedOrmAnno() throws Exception {
|
public void testMixedOrmAnno() throws Exception {
|
||||||
OpenJPAEntityManagerSPI em = emf.createEntityManager();
|
OpenJPAEntityManagerSPI em = emf.createEntityManager();
|
||||||
|
em.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,6 +49,7 @@ public class TestUnwrap extends SingleEMFTestCase {
|
||||||
Object unwrapped = query.unwrap(c);
|
Object unwrapped = query.unwrap(c);
|
||||||
assertTrue(c.isInstance(unwrapped));
|
assertTrue(c.isInstance(unwrapped));
|
||||||
}
|
}
|
||||||
|
em.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -68,6 +69,7 @@ public class TestUnwrap extends SingleEMFTestCase {
|
||||||
Object unwrapped = em.unwrap(c);
|
Object unwrapped = em.unwrap(c);
|
||||||
assertTrue(c.isInstance(unwrapped));
|
assertTrue(c.isInstance(unwrapped));
|
||||||
}
|
}
|
||||||
|
em.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -95,6 +97,7 @@ public class TestUnwrap extends SingleEMFTestCase {
|
||||||
txn.rollback();
|
txn.rollback();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
em.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -123,6 +126,7 @@ public class TestUnwrap extends SingleEMFTestCase {
|
||||||
txn.rollback();
|
txn.rollback();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
em.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue