aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Allison <tallison@apache.org>2013-08-08 13:42:01 +0000
committerTim Allison <tallison@apache.org>2013-08-08 13:42:01 +0000
commit9ddef1c0832bcabf18970870bf75dfc62b69cfc7 (patch)
treede745761c1c52cf8dda471f647ea36c1128d7de3
parente4ba611f125bfb624c3605aa63ad6f30c84d93d7 (diff)
downloadpoi-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.java10
-rw-r--r--test-data/document/Tika-792.docxbin0 -> 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
new file mode 100644
index 0000000000..e8ddc0b1d3
--- /dev/null
+++ b/test-data/document/Tika-792.docx
Binary files differ