openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r1005857 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/lib/conf/TestAnchorParsing.java
Date Fri, 08 Oct 2010 15:22:39 GMT
Author: dwoods
Date: Fri Oct  8 15:22:38 2010
New Revision: 1005857

URL: http://svn.apache.org/viewvc?rev=1005857&view=rev
Log:
make sure tests cleanup EMs and EMFs

Modified:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/lib/conf/TestAnchorParsing.java

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/lib/conf/TestAnchorParsing.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/lib/conf/TestAnchorParsing.java?rev=1005857&r1=1005856&r2=1005857&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/lib/conf/TestAnchorParsing.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/lib/conf/TestAnchorParsing.java
Fri Oct  8 15:22:38 2010
@@ -125,6 +125,7 @@ public class TestAnchorParsing extends T
         } catch (MissingResourceException mre) {
             // expected
         }
+        validFile = null;
     }
 
     public void testNonexistantFileLoad() {
@@ -149,6 +150,8 @@ public class TestAnchorParsing extends T
                 break;
             out.write(bytes, 0, count);
         }
+        in.close();
+        out.close();
         f.deleteOnExit();
         return f;
     }



Mime
View raw message