Browse Source

[bug-66827] add test case (that passes) - so issue is nor reproduced

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911399 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_5_2_4
PJ Fanning 9 months ago
parent
commit
dd1b0b1128

+ 14
- 0
poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java View File

@@ -3881,6 +3881,20 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues {
}
}

@Test
void testBug66827() throws Exception {
final int expectedCount = 6;
try (XSSFWorkbook wb = openSampleWorkbook("bug66827.xlsx")) {
SharedStringsTable sst = wb.getSharedStringSource();
assertNotNull(sst);
assertEquals(expectedCount, sst.getCount());
for (int i = 0; i < expectedCount; i++) {
assertNotNull(sst.getItemAt(i));
}

}
}

private static void readByCommonsCompress(File temp_excel_poi) throws IOException {
/* read by commons-compress*/
try (ZipFile zipFile = new ZipFile(temp_excel_poi)) {

BIN
test-data/spreadsheet/bug66827.xlsx View File


Loading…
Cancel
Save