Author: centic
Date: Sat Apr 20 07:53:35 2024
New Revision: 1917174
URL: http://svn.apache.org/viewvc?rev=1917174&view=rev
Log:
Integration tests: Add writing out the document
This will cover some more functionality
Modified:
poi/trunk/poi-integration/src/test/java/org/apache/poi/stress/XWPFFileHandler.java
poi/trunk/test-data/spreadsheet/stress.xls
Modified:
poi/trunk/poi-integration/src/test/java/org/apache/poi/stress/XWPFFileHandler.java
URL:
http://svn.apache.org/viewvc/poi/trunk/poi-integration/src/test/java/org/apache/poi/stress/XWPFFileHandler.java?rev=1917174&r1=1917173&r2=1917174&view=diff
==============================================================================
---
poi/trunk/poi-integration/src/test/java/org/apache/poi/stress/XWPFFileHandler.java
(original)
+++
poi/trunk/poi-integration/src/test/java/org/apache/poi/stress/XWPFFileHandler.java
Sat Apr 20 07:53:35 2024
@@ -22,6 +22,7 @@ import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Set;
+import org.apache.commons.io.output.NullOutputStream;
import org.apache.poi.ooxml.POIXMLException;
import org.apache.poi.xwpf.usermodel.XWPFDocument;
import org.junit.jupiter.api.Test;
@@ -41,6 +42,8 @@ public class XWPFFileHandler extends Abs
try (XWPFDocument doc = new XWPFDocument(stream)) {
new POIXMLDocumentHandler().handlePOIXMLDocument(doc);
POIXMLDocumentHandler.cursorRecursive(doc.getDocument());
+
+ doc.write(NullOutputStream.INSTANCE);
} catch (POIXMLException e) {
Exception cause = (Exception)e.getCause();
throw cause == null ? e : cause;
Modified: poi/trunk/test-data/spreadsheet/stress.xls
URL:
http://svn.apache.org/viewvc/poi/trunk/test-data/spreadsheet/stress.xls?rev=1917174&r1=1917173&r2=1917174&view=diff
==============================================================================
Binary files - no diff available.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]