]> source.dussan.org Git - poi.git/commitdiff
bug 60489 -- add a file that triggered a ClassNotFoundException on TIKA-2208/elastics...
authorTim Allison <tallison@apache.org>
Fri, 16 Dec 2016 16:46:00 +0000 (16:46 +0000)
committerTim Allison <tallison@apache.org>
Fri, 16 Dec 2016 16:46:00 +0000 (16:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1774638 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/testcases/org/apache/poi/xdgf/extractor/TestXDGFVisioExtractor.java
test-data/diagram/60489.vsdx [new file with mode: 0644]

index 43a6036ba22712accef932c19045359bed49e297..7603ab7efd56ec7809627cfe3c6bce82c6c34d22 100644 (file)
@@ -53,4 +53,17 @@ public class TestXDGFVisioExtractor extends TestCase {
         
         extractor.close();
     }
+
+
+    //the point of this is to trigger the addition of
+    //some common visio classes -- ConnectsType
+    public void testVisioConnects() throws Exception {
+
+        XmlVisioDocument document =
+                new XmlVisioDocument(diagrams.
+                        openResourceAsStream("60489.vsdx"));
+        XDGFVisioExtractor extractor = new XDGFVisioExtractor(document);
+        String text = extractor.getText();
+        assertTrue(text.indexOf("Arrears") > -1);
+    }
 }
diff --git a/test-data/diagram/60489.vsdx b/test-data/diagram/60489.vsdx
new file mode 100644 (file)
index 0000000..659ecdd
Binary files /dev/null and b/test-data/diagram/60489.vsdx differ