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
|
@Override
|
||||||
public void tearDown() throws Exception {
|
public void tearDown() throws Exception {
|
||||||
closeEMF(emf);
|
closeEMF(emf);
|
||||||
|
emf = null;
|
||||||
super.tearDown();
|
super.tearDown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,9 @@ public class TestDataCacheBehavesIdentical extends AbstractTestCase {
|
||||||
// HACK - need to manually close EMFs after all tests have run
|
// HACK - need to manually close EMFs after all tests have run
|
||||||
if (TEST_COUNT >= 21) {
|
if (TEST_COUNT >= 21) {
|
||||||
closeEMF(emfWithDataCache);
|
closeEMF(emfWithDataCache);
|
||||||
|
emfWithDataCache = null;
|
||||||
closeEMF(emfWithoutDataCache);
|
closeEMF(emfWithoutDataCache);
|
||||||
|
emfWithoutDataCache = null;
|
||||||
super.tearDown();
|
super.tearDown();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,6 +42,7 @@ public class TestEntitiesAsKeys extends AbstractPersistenceTestCase {
|
||||||
public void tearDown() throws Exception {
|
public void tearDown() throws Exception {
|
||||||
closeEMF(emf);
|
closeEMF(emf);
|
||||||
emf = null;
|
emf = null;
|
||||||
|
super.tearDown();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void populate() {
|
public void populate() {
|
||||||
|
|
|
@ -68,6 +68,7 @@ public class TestJPQL2Queries
|
||||||
throws Exception {
|
throws Exception {
|
||||||
try {
|
try {
|
||||||
_factory.close();
|
_factory.close();
|
||||||
|
_factory = null;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,7 @@ public class TestJPQL2ResultsAndResultClasses
|
||||||
public void tearDown()
|
public void tearDown()
|
||||||
throws Exception {
|
throws Exception {
|
||||||
_factory.close();
|
_factory.close();
|
||||||
|
_factory = null;
|
||||||
super.tearDown();
|
super.tearDown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,7 @@ public class TestJPQLRelationProjections
|
||||||
public void tearDown()
|
public void tearDown()
|
||||||
throws Exception {
|
throws Exception {
|
||||||
_factory.close();
|
_factory.close();
|
||||||
|
_factory = null;
|
||||||
super.tearDown();
|
super.tearDown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -80,6 +80,7 @@ public class TestMutableParameters
|
||||||
throws Exception {
|
throws Exception {
|
||||||
try {
|
try {
|
||||||
_factory.close();
|
_factory.close();
|
||||||
|
_factory = null;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,7 @@ public class TestResultShapes extends AbstractTestCase {
|
||||||
|
|
||||||
public void tearDown() throws Exception {
|
public void tearDown() throws Exception {
|
||||||
_broker.close();
|
_broker.close();
|
||||||
|
_broker = null;
|
||||||
super.tearDown();
|
super.tearDown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue