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:
parent
44824082c3
commit
0d700b0470
@ -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());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
BIN
test-data/document/Tika-792.docx
Normal file
BIN
test-data/document/Tika-792.docx
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user