Disabled unit test for #58760 (problem remains)

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1722244 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2015-12-29 22:42:17 +00:00
parent 434ebbbdef
commit a3d4d2571f
2 changed files with 17 additions and 0 deletions

View 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));
}
}

Binary file not shown.