You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2021/10/18 17:34:12 UTC

svn commit: r1894359 - in /poi/trunk: poi-ooxml/src/test/java/org/apache/poi/xwpf/TestXWPFBugs.java test-data/document/bib-chernigovka.netdo.ru_download_docs_17459.docx

Author: fanningpj
Date: Mon Oct 18 17:34:12 2021
New Revision: 1894359

URL: http://svn.apache.org/viewvc?rev=1894359&view=rev
Log:
add problem file to build

Added:
    poi/trunk/test-data/document/bib-chernigovka.netdo.ru_download_docs_17459.docx   (with props)
Modified:
    poi/trunk/poi-ooxml/src/test/java/org/apache/poi/xwpf/TestXWPFBugs.java

Modified: poi/trunk/poi-ooxml/src/test/java/org/apache/poi/xwpf/TestXWPFBugs.java
URL: http://svn.apache.org/viewvc/poi/trunk/poi-ooxml/src/test/java/org/apache/poi/xwpf/TestXWPFBugs.java?rev=1894359&r1=1894358&r2=1894359&view=diff
==============================================================================
--- poi/trunk/poi-ooxml/src/test/java/org/apache/poi/xwpf/TestXWPFBugs.java (original)
+++ poi/trunk/poi-ooxml/src/test/java/org/apache/poi/xwpf/TestXWPFBugs.java Mon Oct 18 17:34:12 2021
@@ -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

Added: poi/trunk/test-data/document/bib-chernigovka.netdo.ru_download_docs_17459.docx
URL: http://svn.apache.org/viewvc/poi/trunk/test-data/document/bib-chernigovka.netdo.ru_download_docs_17459.docx?rev=1894359&view=auto
==============================================================================
Binary file - no diff available.

Propchange: poi/trunk/test-data/document/bib-chernigovka.netdo.ru_download_docs_17459.docx
------------------------------------------------------------------------------
--- svn:mime-type (added)
+++ svn:mime-type Mon Oct 18 17:34:12 2021
@@ -0,0 +1 @@
+application/vnd.openxmlformats-officedocument.wordprocessingml.document



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org