]> source.dussan.org Git - poi.git/commitdiff
POI 55361 trigger to load CTMoveBookmark in TestXWPFParagraph
authorTim Allison <tallison@apache.org>
Thu, 8 Aug 2013 13:42:01 +0000 (13:42 +0000)
committerTim Allison <tallison@apache.org>
Thu, 8 Aug 2013 13:42:01 +0000 (13:42 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1511777 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java
test-data/document/Tika-792.docx [new file with mode: 0644]

index cb414168fbb0b6078005fbdce6ad17b5df880af9..7d6e83c3037540177acd2c1710c983565b56427c 100644 (file)
@@ -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 (file)
index 0000000..e8ddc0b
Binary files /dev/null and b/test-data/document/Tika-792.docx differ