From: Yegor Kozlov Date: Fri, 6 Aug 2010 09:03:32 +0000 (+0000) Subject: close OPC package before assertion, otherwise the test fails on Win7 (unix-based... X-Git-Tag: REL_3_7_BETA3~65 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0427fc7a0f867ab16d61df81111cf592212bb8c9;p=poi.git close OPC package before assertion, otherwise the test fails on Win7 (unix-based systems always pass) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@982911 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackage.java b/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackage.java index 4224317f43..1c41db0d1b 100644 --- a/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackage.java +++ b/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackage.java @@ -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());