[bug-66612] get macrosheet xml (test)

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1909995 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2023-05-22 16:08:48 +00:00
parent b5153f1395
commit bc035b1aff

View File

@ -344,6 +344,14 @@ public final class TestXSSFReader {
}
}
@Test
void test66612() throws Exception {
try (OPCPackage pkg = OPCPackage.open(_ssTests.openResourceAsStream("xlmmacro.xlsm"))) {
XSSFReader reader = new XSSFReader(pkg);
assertEquals("OCHSA0XBnVkZrG5OECromBJH43QoLIEZLit3eDix+rs=", hash(reader));
}
}
@Test
void testStrictOoxmlNotAllowed() throws Exception {
assertThrows(POIXMLException.class, () -> {