mirror of https://github.com/apache/poi.git
[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:
parent
005863e1c9
commit
dd1b0b1128
|
@ -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 {
|
private static void readByCommonsCompress(File temp_excel_poi) throws IOException {
|
||||||
/* read by commons-compress*/
|
/* read by commons-compress*/
|
||||||
try (ZipFile zipFile = new ZipFile(temp_excel_poi)) {
|
try (ZipFile zipFile = new ZipFile(temp_excel_poi)) {
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue