aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaven O'Neal <onealj@apache.org>2016-04-11 21:35:22 +0000
committerJaven O'Neal <onealj@apache.org>2016-04-11 21:35:22 +0000
commitbc706e250b72502025d2b59acf368f39e251ee4a (patch)
tree16bf741534f7d21072fc75cc30a7ce44ed2a5db8
parent5c29cfc0583e0d0dac58531bcea5ff2aa0e32118 (diff)
downloadpoi-bc706e250b72502025d2b59acf368f39e251ee4a.tar.gz
poi-bc706e250b72502025d2b59acf368f39e251ee4a.zip
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
-rw-r--r--src/testcases/org/apache/poi/poifs/macros/TestVBAMacroReader.java14
1 files 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");