From bbb2f23a856014f649e15d912dce9fbcf129a181 Mon Sep 17 00:00:00 2001 From: Donald Woods Date: Fri, 8 Oct 2010 17:32:37 +0000 Subject: [PATCH] add comment git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1005918 13f79535-47bb-0310-9956-ffa450edef68 --- .../persistence/annotations/xml/TestMetaDataComplete.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/annotations/xml/TestMetaDataComplete.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/annotations/xml/TestMetaDataComplete.java index 9dcf7abcb..8d4bbd558 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/annotations/xml/TestMetaDataComplete.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/annotations/xml/TestMetaDataComplete.java @@ -49,6 +49,7 @@ public class TestMetaDataComplete extends SingleEMFTestCase { private static int currentTest = 0; public void setUp() throws Exception { + currentTest++; if (oemf == null) { super.setUp(EntityA.class, EntityB.class, DerivedA.class, DerivedB.class); @@ -62,10 +63,10 @@ public class TestMetaDataComplete extends SingleEMFTestCase { derivedA = repos.getMetaData(DerivedA.class, null, true); derivedB = repos.getMetaData(DerivedB.class, null, true); } - currentTest++; } public void tearDown() throws Exception { + // only cleanup after the last test has run if (currentTest >= 6) { super.tearDown(); oemf = null;