diff options
author | PJ Fanning <fanningpj@apache.org> | 2021-10-18 17:34:12 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2021-10-18 17:34:12 +0000 |
commit | 787af858e72b0c60ea8b89d47fed230c5582fb62 (patch) | |
tree | 2e236e1be95d61c58290aaf87e7fbefff54ca993 | |
parent | 005810640deb3499a03bbec0cddbacc178bdb2d5 (diff) | |
download | poi-787af858e72b0c60ea8b89d47fed230c5582fb62.tar.gz poi-787af858e72b0c60ea8b89d47fed230c5582fb62.zip |
add problem file to build
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894359 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | poi-ooxml/src/test/java/org/apache/poi/xwpf/TestXWPFBugs.java | 12 | ||||
-rw-r--r-- | test-data/document/bib-chernigovka.netdo.ru_download_docs_17459.docx | bin | 0 -> 47023 bytes |
2 files changed, 12 insertions, 0 deletions
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 b630075831..f6339332e1 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 @@ -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 Binary files differnew file mode 100644 index 0000000000..e62c2ef39f --- /dev/null +++ b/test-data/document/bib-chernigovka.netdo.ru_download_docs_17459.docx |