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:
Maxim Valyanskiy 2011-06-22 12:46:42 +00:00
parent 6e90e3bc06
commit 1a2aa76ff6
2 changed files with 11 additions and 0 deletions

View File

@ -270,4 +270,15 @@ public class TestXWPFWordExtractor extends TestCase {
assertTrue(text.length() > 0);
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.