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
This commit is contained in:
Tim Allison 2018-01-23 18:05:23 +00:00
parent 48a5e63ad7
commit db3e8697f7
2 changed files with 8 additions and 0 deletions

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();
}
}

Binary file not shown.