diff options
author | Nick Burch <nick@apache.org> | 2017-04-12 09:40:54 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2017-04-12 09:40:54 +0000 |
commit | b51a80f60b0761190e78b2be7b4e75117762595e (patch) | |
tree | c4fe5ee4fc5fddc7f10f2cd347c2b8776ed40cb5 | |
parent | 9fe2769ecd9ec80b3b4025cbcff505129f61a9d8 (diff) | |
download | poi-b51a80f60b0761190e78b2be7b4e75117762595e.tar.gz poi-b51a80f60b0761190e78b2be7b4e75117762595e.zip |
Failing, disabled unit test for bug #60973
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1791098 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/ooxml/testcases/org/apache/poi/xdgf/extractor/TestXDGFVisioExtractor.java | 23 | ||||
-rw-r--r-- | test-data/diagram/60973.vsdx | bin | 0 -> 238720 bytes |
2 files changed, 22 insertions, 1 deletions
diff --git a/src/ooxml/testcases/org/apache/poi/xdgf/extractor/TestXDGFVisioExtractor.java b/src/ooxml/testcases/org/apache/poi/xdgf/extractor/TestXDGFVisioExtractor.java index 0be1814b2e..c441a56174 100644 --- a/src/ooxml/testcases/org/apache/poi/xdgf/extractor/TestXDGFVisioExtractor.java +++ b/src/ooxml/testcases/org/apache/poi/xdgf/extractor/TestXDGFVisioExtractor.java @@ -18,6 +18,7 @@ package org.apache.poi.xdgf.extractor; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; +import static org.apache.poi.POITestCase.assertContains; import java.io.IOException; import java.io.InputStream; @@ -27,6 +28,7 @@ import org.apache.poi.openxml4j.opc.OPCPackage; import org.apache.poi.xdgf.usermodel.XmlVisioDocument; import org.junit.After; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; public class TestXDGFVisioExtractor { @@ -72,7 +74,26 @@ public class TestXDGFVisioExtractor { is.close(); XDGFVisioExtractor extractor = new XDGFVisioExtractor(document); String text = extractor.getText(); - assertTrue(text.indexOf("Arrears") > -1); + assertContains(text, "Arrears"); + extractor.close(); + } + + /** + * Currently failing with: + * org.apache.poi.POIXMLException: Invalid 'Row_Type' name 'PolylineTo' + * at org.apache.poi.xdgf.util.ObjectFactory.load + * at org.apache.poi.xdgf.usermodel.section.geometry.GeometryRowFactory.load + */ + @Test + @Ignore("TODO Fix bug #60973") + public void testPolylineTo() throws IOException { + InputStream is = SAMPLES.openResourceAsStream("60973.vsdx"); + XmlVisioDocument document = new XmlVisioDocument(is); + is.close(); + XDGFVisioExtractor extractor = new XDGFVisioExtractor(document); + String text = extractor.getText(); + assertContains(text, "42 U"); + assertContains(text, "Access VLANS"); extractor.close(); } } diff --git a/test-data/diagram/60973.vsdx b/test-data/diagram/60973.vsdx Binary files differnew file mode 100644 index 0000000000..0e45706453 --- /dev/null +++ b/test-data/diagram/60973.vsdx |