]> source.dussan.org Git - poi.git/commitdiff
close OPC package before assertion, otherwise the test fails on Win7 (unix-based...
authorYegor Kozlov <yegor@apache.org>
Fri, 6 Aug 2010 09:03:32 +0000 (09:03 +0000)
committerYegor Kozlov <yegor@apache.org>
Fri, 6 Aug 2010 09:03:32 +0000 (09:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@982911 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackage.java

index 4224317f43e64afaa2fdf28ba851d893e0f0056b..1c41db0d1bc6285090644a1ac1f3aa652f92ce78 100644 (file)
@@ -470,7 +470,8 @@ public final class TestPackage extends TestCase {
             p.save(tempFile);
             fail("You shouldn't be able to call save(File) to overwrite the current file");
         } catch(InvalidOperationException e) {}
-        
+
+        p.close();
         // Delete it
         assertTrue(tempFile.delete());