From 5310fc4b6d933ec44a1243ff1f3f61f118076417 Mon Sep 17 00:00:00 2001 From: Javen O'Neal Date: Tue, 29 Dec 2015 09:28:32 +0000 Subject: [PATCH] revert, not close, XSSFWorkbooks created by WorkbookFactory in order to avoid modifying SampleSS.xlsx (this bug will be addressed in a future commit). Since r1721468 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1722079 13f79535-47bb-0310-9956-ffa450edef68 --- src/ooxml/testcases/org/apache/poi/ss/TestWorkbookFactory.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ooxml/testcases/org/apache/poi/ss/TestWorkbookFactory.java b/src/ooxml/testcases/org/apache/poi/ss/TestWorkbookFactory.java index b1615e55b..433576000 100644 --- a/src/ooxml/testcases/org/apache/poi/ss/TestWorkbookFactory.java +++ b/src/ooxml/testcases/org/apache/poi/ss/TestWorkbookFactory.java @@ -85,6 +85,7 @@ public final class TestWorkbookFactory extends TestCase { assertNotNull(wb); assertTrue(wb instanceof XSSFWorkbook); // TODO: this re-writes the sample-file?! wb.close(); + revert(wb); } public void testCreateReadOnly() throws Exception {