Skip to content

Commit 9022b0f

Browse files
author
Brendan StJohn
committed
Add a (failing) test to demonstrate an AbstractMethodError
1 parent 0ddd3bd commit 9022b0f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/test/java/com/monitorjbl/xlsx/StreamingReaderTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.monitorjbl.xlsx;
22

33
import com.monitorjbl.xlsx.exceptions.MissingSheetException;
4+
import org.apache.poi.openxml4j.opc.OPCPackage;
45
import org.apache.poi.ss.usermodel.Cell;
56
import org.apache.poi.ss.usermodel.DateUtil;
67
import org.apache.poi.ss.usermodel.Row;
@@ -451,4 +452,11 @@ public void testNullValueType() throws Exception {
451452
}
452453
}
453454
}
455+
456+
@Test
457+
public void testClosingFiles() throws Exception {
458+
OPCPackage o = OPCPackage.open(new File("src/test/resources/blank_cell_StringCellValue.xlsx"));
459+
460+
o.close();
461+
}
454462
}

0 commit comments

Comments
 (0)