Skip to content

Commit

Permalink
related to Bug 61991 -- include docx in test suite to trigger inclusi…
Browse files Browse the repository at this point in the history
…on of CTPictureBase

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1822033 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
tballison committed Jan 23, 2018
1 parent 48a5e63 commit db3e869
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -433,4 +433,12 @@ public void testPhonetic() throws IOException {
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 added test-data/document/61991.docx
Binary file not shown.

0 comments on commit db3e869

Please sign in to comment.