[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
This commit is contained in:
PJ Fanning 2023-08-01 20:49:26 +00:00
parent 005863e1c9
commit dd1b0b1128
2 changed files with 14 additions and 0 deletions

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)) {

Binary file not shown.