From 1762d08f89d906c9d7ff62881c20cd8ae70d5ae9 Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Sun, 10 Apr 2011 12:49:48 +0000 Subject: [PATCH] Add a disabled test for bug #46662, which seems to be a SharedStringsTable / xmlbeans issue git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1090792 13f79535-47bb-0310-9956-ffa450edef68 --- .../poi/xssf/usermodel/TestXSSFBugs.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java b/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java index 835b38627c..84ec2a7ce0 100644 --- a/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java +++ b/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java @@ -1024,4 +1024,25 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues { assertEquals(0, paneInfo.getHorizontalSplitTopRow()); } } + + /** + * Repeatedly writing a file. + * Something with the SharedStringsTable currently breaks... + */ + public void DISABLEDtest46662() throws Exception { + // New file + XSSFWorkbook wb = new XSSFWorkbook(); + XSSFTestDataSamples.writeOutAndReadBack(wb); + XSSFTestDataSamples.writeOutAndReadBack(wb); + XSSFTestDataSamples.writeOutAndReadBack(wb); + + // Simple file + wb = XSSFTestDataSamples.openSampleWorkbook("sample.xlsx"); + XSSFTestDataSamples.writeOutAndReadBack(wb); + XSSFTestDataSamples.writeOutAndReadBack(wb); + XSSFTestDataSamples.writeOutAndReadBack(wb); + + // Complex file + // TODO + } } -- 2.39.5