poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From talli...@apache.org
Subject svn commit: r1511777 - in /poi/trunk: src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java test-data/document/Tika-792.docx
Date Thu, 08 Aug 2013 13:42:01 GMT
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


Mime
View raw message