poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cen...@apache.org
Subject svn commit: r1666003 - in /poi/trunk: src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFBugs.java test-data/document/56392.docx
Date Wed, 11 Mar 2015 20:39:18 GMT
Author: centic
Date: Wed Mar 11 20:39:18 2015
New Revision: 1666003

URL: http://svn.apache.org/r1666003
Log:
Verify that document from bug 56392 works

Added:
    poi/trunk/test-data/document/56392.docx
Modified:
    poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFBugs.java

Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFBugs.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFBugs.java?rev=1666003&r1=1666002&r2=1666003&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFBugs.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFBugs.java Wed Mar
11 20:39:18 2015
@@ -16,10 +16,14 @@
 ==================================================================== */
 package org.apache.poi.xwpf.usermodel;
 
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
 
+import java.io.FileInputStream;
 import java.io.IOException;
 
+import org.apache.poi.openxml4j.exceptions.OpenXML4JException;
+import org.apache.poi.openxml4j.opc.OPCPackage;
 import org.apache.poi.xwpf.XWPFTestDataSamples;
 import org.apache.poi.xwpf.usermodel.XWPFRun.FontCharRange;
 import org.junit.Test;
@@ -77,4 +81,11 @@ public class TestXWPFBugs {
             } 
         }
     }
+
+    
+    @Test
+    public void test56392() throws IOException, OpenXML4JException {
+        XWPFDocument doc = XWPFTestDataSamples.openSampleDocument("56392.docx");
+    	assertNotNull(doc);
+    }
 }

Added: poi/trunk/test-data/document/56392.docx
URL: http://svn.apache.org/viewvc/poi/trunk/test-data/document/56392.docx?rev=1666003&view=auto
==============================================================================
Binary files poi/trunk/test-data/document/56392.docx (added) and poi/trunk/test-data/document/56392.docx
Wed Mar 11 20:39:18 2015 differ



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message