]> source.dussan.org Git - poi.git/commitdiff
Disabled unit test for #58760 (problem remains)
authorNick Burch <nick@apache.org>
Tue, 29 Dec 2015 22:42:17 +0000 (22:42 +0000)
committerNick Burch <nick@apache.org>
Tue, 29 Dec 2015 22:42:17 +0000 (22:42 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1722244 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java
test-data/spreadsheet/58760.xlsx [new file with mode: 0644]

index e6719ed272656130002b1941054aeecceaf3605d..870a8c4e5d48e4b256bcf3e26db434c8f24d955f 100644 (file)
@@ -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 (file)
index 0000000..9795f8c
Binary files /dev/null and b/test-data/spreadsheet/58760.xlsx differ