From 9ddef1c0832bcabf18970870bf75dfc62b69cfc7 Mon Sep 17 00:00:00 2001 From: Tim Allison Date: Thu, 8 Aug 2013 13:42:01 +0000 Subject: [PATCH] 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 --- .../poi/xwpf/usermodel/TestXWPFParagraph.java | 10 +++++++++- test-data/document/Tika-792.docx | Bin 0 -> 17913 bytes 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 test-data/document/Tika-792.docx 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 0000000000000000000000000000000000000000..e8ddc0b1d3b7cd7cfab236b4fa1144948af5f334 GIT binary patch literal 17913 zcmeIaWk6ipvM$<4aJS&@?(Xgq2=4B#!Gi=3ZcT7^4GzIwgA+8kTaaL{leN}a+1cx! zd;gwycK>Lap7X0wLu%AFM^&}590Vi=015yD002k;gIeENd%*yJWLN+I9RLHaBj#Z5 zYG&_hpyuUh=Ay^wX=h8E3kgo04FCt-|DV_Y;t}Xo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