mirror of https://github.com/apache/openjpa.git
test cleanup
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1027638 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ee682d82ab
commit
8510080d45
|
@ -65,6 +65,7 @@ public class CacheLoadTest
|
|||
@Override
|
||||
public void tearDown() throws Exception {
|
||||
closeEMF(emf);
|
||||
emf = null;
|
||||
super.tearDown();
|
||||
}
|
||||
|
||||
|
|
|
@ -106,7 +106,9 @@ public class TestDataCacheBehavesIdentical extends AbstractTestCase {
|
|||
// HACK - need to manually close EMFs after all tests have run
|
||||
if (TEST_COUNT >= 21) {
|
||||
closeEMF(emfWithDataCache);
|
||||
emfWithDataCache = null;
|
||||
closeEMF(emfWithoutDataCache);
|
||||
emfWithoutDataCache = null;
|
||||
super.tearDown();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,6 +42,7 @@ public class TestEntitiesAsKeys extends AbstractPersistenceTestCase {
|
|||
public void tearDown() throws Exception {
|
||||
closeEMF(emf);
|
||||
emf = null;
|
||||
super.tearDown();
|
||||
}
|
||||
|
||||
public void populate() {
|
||||
|
|
|
@ -68,6 +68,7 @@ public class TestJPQL2Queries
|
|||
throws Exception {
|
||||
try {
|
||||
_factory.close();
|
||||
_factory = null;
|
||||
} catch (Exception e) {
|
||||
}
|
||||
|
||||
|
|
|
@ -106,7 +106,7 @@ public class TestJPQL2ResultsAndResultClasses
|
|||
public void tearDown()
|
||||
throws Exception {
|
||||
_factory.close();
|
||||
|
||||
_factory = null;
|
||||
super.tearDown();
|
||||
}
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ public class TestJPQLRelationProjections
|
|||
public void tearDown()
|
||||
throws Exception {
|
||||
_factory.close();
|
||||
|
||||
_factory = null;
|
||||
super.tearDown();
|
||||
}
|
||||
|
||||
|
|
|
@ -80,6 +80,7 @@ public class TestMutableParameters
|
|||
throws Exception {
|
||||
try {
|
||||
_factory.close();
|
||||
_factory = null;
|
||||
} catch (Exception e) {
|
||||
}
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ public class TestResultShapes extends AbstractTestCase {
|
|||
|
||||
public void tearDown() throws Exception {
|
||||
_broker.close();
|
||||
|
||||
_broker = null;
|
||||
super.tearDown();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue