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:
Donald Woods 2010-10-08 15:44:03 +00:00
parent 11969d128d
commit 274de20680
2 changed files with 5 additions and 0 deletions

View File

@ -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();
} }
} }

View File

@ -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();
} }
} }