You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ta...@apache.org on 2013/08/08 15:42:01 UTC
svn commit: r1511777 - in /poi/trunk:
src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java
test-data/document/Tika-792.docx
Author: tallison
Date: Thu Aug 8 13:42:01 2013
New Revision: 1511777
URL: http://svn.apache.org/r1511777
Log:
POI 55361 trigger to load CTMoveBookmark in TestXWPFParagraph
Added:
poi/trunk/test-data/document/Tika-792.docx (with props)
Modified:
poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java?rev=1511777&r1=1511776&r2=1511777&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java Thu Aug 8 13:42:01 2013
@@ -342,4 +342,12 @@ public final class TestXWPFParagraph ext
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());
+ }
+ }
Added: poi/trunk/test-data/document/Tika-792.docx
URL: http://svn.apache.org/viewvc/poi/trunk/test-data/document/Tika-792.docx?rev=1511777&view=auto
==============================================================================
Binary file - no diff available.
Propchange: poi/trunk/test-data/document/Tika-792.docx
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org