]> source.dussan.org Git - poi.git/commitdiff
related to Bug 61991 -- include docx in test suite to trigger inclusion of CTPictureBase
authorTim Allison <tallison@apache.org>
Tue, 23 Jan 2018 18:05:23 +0000 (18:05 +0000)
committerTim Allison <tallison@apache.org>
Tue, 23 Jan 2018 18:05:23 +0000 (18:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1822033 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/testcases/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java
test-data/document/61991.docx [new file with mode: 0644]

index b7d0b03f6b48565b99194d8d0d900a8d6401fb8c..d51750e9223e40fd24f162de3258275a717b1f09 100644 (file)
@@ -433,4 +433,12 @@ public class TestXWPFWordExtractor extends TestCase {
         assertEquals("\u6771\u4EAC", extractor.getText().trim());
     }
 
+    public void testCTPictureBase() throws IOException {
+        //This forces ctpicturebase to be included in the poi-ooxml-schemas jar
+        XWPFDocument doc = XWPFTestDataSamples.openSampleDocument("61991.docx");
+        XWPFWordExtractor extractor = new XWPFWordExtractor(doc);
+        String txt = extractor.getText();
+        assertContains(txt, "Sequencing data");
+        extractor.close();
+    }
 }
diff --git a/test-data/document/61991.docx b/test-data/document/61991.docx
new file mode 100644 (file)
index 0000000..d363e6a
Binary files /dev/null and b/test-data/document/61991.docx differ