From: Nick Burch Date: Tue, 29 Dec 2015 22:42:17 +0000 (+0000) Subject: Disabled unit test for #58760 (problem remains) X-Git-Tag: REL_3_14_FINAL~138 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5420e5f59b93169980a66a68864da1425547221c;p=poi.git Disabled unit test for #58760 (problem remains) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1722244 13f79535-47bb-0310-9956-ffa450edef68 --- 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 e6719ed272..870a8c4e5d 100644 --- a/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java +++ b/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java @@ -2871,4 +2871,21 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues { assertNotNull(sheet.getRow(0).getCell(0)); assertEquals(bookData[0][0], sheet.getRow(0).getCell(0).getStringCellValue()); } + + /** + * Regression between 3.10.1 and 3.13 - + * org.apache.poi.openxml4j.exceptions.InvalidFormatException: + * The part /xl/sharedStrings.xml does not have any content type + * ! Rule: Package require content types when retrieving a part from a package. [M.1.14] + */ + @Test + @Ignore + public void test58760() throws Exception { + Workbook wb = XSSFTestDataSamples.openSampleWorkbook("58760.xlsx"); + assertEquals(1, wb.getNumberOfSheets()); + assertEquals("Sheet1", wb.getSheetName(0)); + wb = XSSFTestDataSamples.writeOutAndReadBack(wb); + assertEquals(1, wb.getNumberOfSheets()); + assertEquals("Sheet1", wb.getSheetName(0)); + } } diff --git a/test-data/spreadsheet/58760.xlsx b/test-data/spreadsheet/58760.xlsx new file mode 100644 index 0000000000..9795f8c483 Binary files /dev/null and b/test-data/spreadsheet/58760.xlsx differ