POI 55361 trigger to load CTMoveBookmark in TestXWPFParagraph

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1511777 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Tim Allison 2013-08-08 13:42:01 +00:00
parent 44824082c3
commit 0d700b0470
2 changed files with 9 additions and 1 deletions

View File

@ -342,4 +342,12 @@ public final class TestXWPFParagraph extends TestCase {
r.getCTR().getDrawingArray(0).getInlineArray(0).getGraphic().getGraphicData(); r.getCTR().getDrawingArray(0).getInlineArray(0).getGraphic().getGraphicData();
PicDocument pd = new PicDocumentImpl(null); PicDocument pd = new PicDocumentImpl(null);
} }
}
public void testTika792() throws Exception{
//This test forces the loading of CTMoveBookmark and
//CTMoveBookmarkImpl into ooxml-lite.
XWPFDocument doc = XWPFTestDataSamples.openSampleDocument("Tika-792.docx");
XWPFParagraph paragraph = doc.getParagraphs().get(0);
assertEquals("s", paragraph.getText());
}
}

Binary file not shown.