]> source.dussan.org Git - poi.git/commitdiff
add problem file to build
authorPJ Fanning <fanningpj@apache.org>
Mon, 18 Oct 2021 17:34:12 +0000 (17:34 +0000)
committerPJ Fanning <fanningpj@apache.org>
Mon, 18 Oct 2021 17:34:12 +0000 (17:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894359 13f79535-47bb-0310-9956-ffa450edef68

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

index b630075831f701601327a9c333a1362b64341a2e..f6339332e1c8b2f63715e8439501284ba2ed66cf 100644 (file)
@@ -139,4 +139,16 @@ class TestXWPFBugs {
             zf.close();
         }
     }
+
+    @Test
+    void missingXsbs() throws IOException, XmlException {
+        String[] files = {"bib-chernigovka.netdo.ru_download_docs_17459.docx"};
+        for (String f : files) {
+            ZipFile zf = new ZipFile(samples.getFile(f));
+            ZipArchiveEntry entry = zf.getEntry("word/document.xml");
+            DocumentDocument document = DocumentDocument.Factory.parse(zf.getInputStream(entry));
+            assertNotNull(document);
+            zf.close();
+        }
+    }
 }
\ No newline at end of file
diff --git a/test-data/document/bib-chernigovka.netdo.ru_download_docs_17459.docx b/test-data/document/bib-chernigovka.netdo.ru_download_docs_17459.docx
new file mode 100644 (file)
index 0000000..e62c2ef
Binary files /dev/null and b/test-data/document/bib-chernigovka.netdo.ru_download_docs_17459.docx differ