You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by dw...@apache.org on 2010/10/08 19:32:38 UTC
svn commit: r1005918 -
/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/annotations/xml/TestMetaDataComplete.java
Author: dwoods
Date: Fri Oct 8 17:32:37 2010
New Revision: 1005918
URL: http://svn.apache.org/viewvc?rev=1005918&view=rev
Log:
add comment
Modified:
openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/annotations/xml/TestMetaDataComplete.java
Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/annotations/xml/TestMetaDataComplete.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/annotations/xml/TestMetaDataComplete.java?rev=1005918&r1=1005917&r2=1005918&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/annotations/xml/TestMetaDataComplete.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/annotations/xml/TestMetaDataComplete.java Fri Oct 8 17:32:37 2010
@@ -49,6 +49,7 @@ public class TestMetaDataComplete extend
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 extend
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;