Browse Source

related to Bug 61991 -- include docx in test suite to trigger inclusion of CTPictureBase

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1822033 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_4_0_0_FINAL
Tim Allison 6 years ago
parent
commit
e2fe5c190a

+ 8
- 0
src/ooxml/testcases/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java View 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();
}
}

BIN
test-data/document/61991.docx View File


Loading…
Cancel
Save