add comment

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1005918 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Donald Woods 2010-10-08 17:32:37 +00:00
parent 9b56a3f5cc
commit bbb2f23a85
1 changed files with 2 additions and 1 deletions

View File

@ -49,6 +49,7 @@ public class TestMetaDataComplete extends SingleEMFTestCase {
private static int currentTest = 0; private static int currentTest = 0;
public void setUp() throws Exception { public void setUp() throws Exception {
currentTest++;
if (oemf == null) { if (oemf == null) {
super.setUp(EntityA.class, EntityB.class, DerivedA.class, super.setUp(EntityA.class, EntityB.class, DerivedA.class,
DerivedB.class); DerivedB.class);
@ -62,10 +63,10 @@ public class TestMetaDataComplete extends SingleEMFTestCase {
derivedA = repos.getMetaData(DerivedA.class, null, true); derivedA = repos.getMetaData(DerivedA.class, null, true);
derivedB = repos.getMetaData(DerivedB.class, null, true); derivedB = repos.getMetaData(DerivedB.class, null, true);
} }
currentTest++;
} }
public void tearDown() throws Exception { public void tearDown() throws Exception {
// only cleanup after the last test has run
if (currentTest >= 6) { if (currentTest >= 6) {
super.tearDown(); super.tearDown();
oemf = null; oemf = null;