From bc706e250b72502025d2b59acf368f39e251ee4a Mon Sep 17 00:00:00 2001 From: Javen O'Neal Date: Mon, 11 Apr 2016 21:35:22 +0000 Subject: [PATCH] bug 52949: add unit test for reading VBA Macros from a Visio OOXML (VSDM, 2013+) file git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1738651 13f79535-47bb-0310-9956-ffa450edef68 --- .../poi/poifs/macros/TestVBAMacroReader.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/testcases/org/apache/poi/poifs/macros/TestVBAMacroReader.java b/src/testcases/org/apache/poi/poifs/macros/TestVBAMacroReader.java index 7d73654cf5..181598a21b 100644 --- a/src/testcases/org/apache/poi/poifs/macros/TestVBAMacroReader.java +++ b/src/testcases/org/apache/poi/poifs/macros/TestVBAMacroReader.java @@ -80,7 +80,7 @@ public class TestVBAMacroReader { public void XSSFfromStream() throws Exception { fromStream(POIDataSamples.getSpreadSheetInstance(), "SimpleMacro.xlsm"); } - @Ignore("Found 0 macros") + @Ignore("bug 59302: Found 0 macros") @Test public void HSLFfromStream() throws Exception { fromStream(POIDataSamples.getSlideShowInstance(), "SimpleMacro.ppt"); @@ -102,6 +102,10 @@ public class TestVBAMacroReader { public void HDGFfromStream() throws Exception { fromStream(POIDataSamples.getDiagramInstance(), "SimpleMacro.vsd"); } + @Test + public void XDGFfromStream() throws Exception { + fromStream(POIDataSamples.getDiagramInstance(), "SimpleMacro.vsdm"); + } //////////////////////////////// From File ///////////////////////////// @Test @@ -112,7 +116,7 @@ public class TestVBAMacroReader { public void XSSFfromFile() throws Exception { fromFile(POIDataSamples.getSpreadSheetInstance(), "SimpleMacro.xlsm"); } - @Ignore("Found 0 macros") + @Ignore("bug 59302: Found 0 macros") @Test public void HSLFfromFile() throws Exception { fromFile(POIDataSamples.getSlideShowInstance(), "SimpleMacro.ppt"); @@ -134,13 +138,17 @@ public class TestVBAMacroReader { public void HDGFfromFile() throws Exception { fromFile(POIDataSamples.getDiagramInstance(), "SimpleMacro.vsd"); } + @Test + public void XDGFfromFile() throws Exception { + fromFile(POIDataSamples.getDiagramInstance(), "SimpleMacro.vsdm"); + } //////////////////////////////// From NPOIFS ///////////////////////////// @Test public void HSSFfromNPOIFS() throws Exception { fromNPOIFS(POIDataSamples.getSpreadSheetInstance(), "SimpleMacro.xls"); } - @Ignore("Found 0 macros") + @Ignore("bug 59302: Found 0 macros") @Test public void HSLFfromNPOIFS() throws Exception { fromNPOIFS(POIDataSamples.getSlideShowInstance(), "SimpleMacro.ppt"); -- 2.39.5