From: PJ Fanning Date: Fri, 22 Oct 2021 20:24:12 +0000 (+0000) Subject: [bug-65649] add test case X-Git-Tag: REL_5_2_0~319 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2730bdc113a00c8a128bbc848c40982745e0201e;p=poi.git [bug-65649] add test case git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894492 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/poi-ooxml/src/test/java/org/apache/poi/xwpf/TestXWPFBugs.java b/poi-ooxml/src/test/java/org/apache/poi/xwpf/TestXWPFBugs.java index f6339332e1..3ba2371d19 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/xwpf/TestXWPFBugs.java +++ b/poi-ooxml/src/test/java/org/apache/poi/xwpf/TestXWPFBugs.java @@ -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 index 0000000000..48548788f0 Binary files /dev/null and b/test-data/document/bug65649.docx differ