]> source.dussan.org Git - poi.git/commitdiff
Verify that document from bug 56392 works
authorDominik Stadler <centic@apache.org>
Wed, 11 Mar 2015 20:39:18 +0000 (20:39 +0000)
committerDominik Stadler <centic@apache.org>
Wed, 11 Mar 2015 20:39:18 +0000 (20:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1666003 13f79535-47bb-0310-9956-ffa450edef68

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

index bded4e48c404439fdc3094c91ab9f77244751ae8..053b611e3c12c3b459410f269130a96e61298b6f 100644 (file)
 ==================================================================== */\r
 package org.apache.poi.xwpf.usermodel;\r
 \r
-import static org.junit.Assert.*;\r
+import static org.junit.Assert.assertEquals;\r
+import static org.junit.Assert.assertNotNull;\r
 \r
+import java.io.FileInputStream;\r
 import java.io.IOException;\r
 \r
+import org.apache.poi.openxml4j.exceptions.OpenXML4JException;\r
+import org.apache.poi.openxml4j.opc.OPCPackage;\r
 import org.apache.poi.xwpf.XWPFTestDataSamples;\r
 import org.apache.poi.xwpf.usermodel.XWPFRun.FontCharRange;\r
 import org.junit.Test;\r
@@ -77,4 +81,11 @@ public class TestXWPFBugs {
             } \r
         }\r
     }\r
+\r
+    \r
+    @Test\r
+    public void test56392() throws IOException, OpenXML4JException {\r
+        XWPFDocument doc = XWPFTestDataSamples.openSampleDocument("56392.docx");\r
+       assertNotNull(doc);\r
+    }\r
 }\r
diff --git a/test-data/document/56392.docx b/test-data/document/56392.docx
new file mode 100644 (file)
index 0000000..89a71ae
Binary files /dev/null and b/test-data/document/56392.docx differ