mirror of https://github.com/apache/poi.git
Test for parsing document with drawings to prevent NoClassDefFoundError for CTAnchor in XWPFRun
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1138440 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
21885a6fd5
commit
4f7427a355
|
@ -270,4 +270,15 @@ public class TestXWPFWordExtractor extends TestCase {
|
||||||
assertTrue(text.length() > 0);
|
assertTrue(text.length() > 0);
|
||||||
assertTrue(text.contains("FldSimple.docx"));
|
assertTrue(text.contains("FldSimple.docx"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test for parsing document with drawings to prevent
|
||||||
|
* NoClassDefFoundError for CTAnchor in XWPFRun
|
||||||
|
*/
|
||||||
|
public void testDrawings() throws IOException {
|
||||||
|
XWPFDocument doc = XWPFTestDataSamples.openSampleDocument("drawing.docx");
|
||||||
|
XWPFWordExtractor extractor = new XWPFWordExtractor(doc);
|
||||||
|
String text = extractor.getText();
|
||||||
|
assertTrue(text.length() > 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue