aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2023-05-22 16:08:48 +0000
committerPJ Fanning <fanningpj@apache.org>2023-05-22 16:08:48 +0000
commitbc035b1aff973201e861ee82573a2129604e224d (patch)
tree0c22baae82729b55d246bd29d3a5d2a07a923386
parentb5153f13955b3a077200efac1390fdf6b4e3b93e (diff)
downloadpoi-bc035b1aff973201e861ee82573a2129604e224d.tar.gz
poi-bc035b1aff973201e861ee82573a2129604e224d.zip
[bug-66612] get macrosheet xml (test)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1909995 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--poi-ooxml/src/test/java/org/apache/poi/xssf/eventusermodel/TestXSSFReader.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/poi-ooxml/src/test/java/org/apache/poi/xssf/eventusermodel/TestXSSFReader.java b/poi-ooxml/src/test/java/org/apache/poi/xssf/eventusermodel/TestXSSFReader.java
index 5506a364bd..96565866fb 100644
--- a/poi-ooxml/src/test/java/org/apache/poi/xssf/eventusermodel/TestXSSFReader.java
+++ b/poi-ooxml/src/test/java/org/apache/poi/xssf/eventusermodel/TestXSSFReader.java
@@ -345,6 +345,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, () -> {
try (OPCPackage pkg = OPCPackage.open(_ssTests.openResourceAsStream("sample.strict.xlsx"))) {