diff options
author | Tim Allison <tallison@apache.org> | 2013-08-08 13:42:01 +0000 |
---|---|---|
committer | Tim Allison <tallison@apache.org> | 2013-08-08 13:42:01 +0000 |
commit | 9ddef1c0832bcabf18970870bf75dfc62b69cfc7 (patch) | |
tree | de745761c1c52cf8dda471f647ea36c1128d7de3 | |
parent | e4ba611f125bfb624c3605aa63ad6f30c84d93d7 (diff) | |
download | poi-9ddef1c0832bcabf18970870bf75dfc62b69cfc7.tar.gz poi-9ddef1c0832bcabf18970870bf75dfc62b69cfc7.zip |
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
-rw-r--r-- | src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java | 10 | ||||
-rw-r--r-- | test-data/document/Tika-792.docx | bin | 0 -> 17913 bytes |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java b/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java index cb414168fb..7d6e83c303 100644 --- a/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java +++ b/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java @@ -342,4 +342,12 @@ public final class TestXWPFParagraph extends TestCase { r.getCTR().getDrawingArray(0).getInlineArray(0).getGraphic().getGraphicData(); 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()); + } + } diff --git a/test-data/document/Tika-792.docx b/test-data/document/Tika-792.docx Binary files differnew file mode 100644 index 0000000000..e8ddc0b1d3 --- /dev/null +++ b/test-data/document/Tika-792.docx |