add problem file to build

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894359 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2021-10-18 17:34:12 +00:00
parent 005810640d
commit 787af858e7
2 changed files with 12 additions and 0 deletions

View 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();
}
}
}