]> source.dussan.org Git - poi.git/commitdiff
[bug-65649] add test case
authorPJ Fanning <fanningpj@apache.org>
Fri, 22 Oct 2021 20:24:12 +0000 (20:24 +0000)
committerPJ Fanning <fanningpj@apache.org>
Fri, 22 Oct 2021 20:24:12 +0000 (20:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894492 13f79535-47bb-0310-9956-ffa450edef68

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

index f6339332e1c8b2f63715e8439501284ba2ed66cf..3ba2371d19052c8ea0b979fdef02b6af36b3e337 100644 (file)
@@ -151,4 +151,11 @@ class TestXWPFBugs {
             zf.close();
         }
     }
+
+    @Test
+    void bug65649() throws IOException {
+        try (XWPFDocument document = new XWPFDocument(samples.openResourceAsStream("bug65649.docx"))) {
+            assertEquals(731, document.getParagraphs().size());
+        }
+    }
 }
\ No newline at end of file
diff --git a/test-data/document/bug65649.docx b/test-data/document/bug65649.docx
new file mode 100644 (file)
index 0000000..4854878
Binary files /dev/null and b/test-data/document/bug65649.docx differ