aboutsummaryrefslogtreecommitdiffstats
path: root/poi-integration/src
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2021-11-15 00:03:44 +0000
committerAndreas Beeker <kiwiwings@apache.org>2021-11-15 00:03:44 +0000
commit27b4bdc3f7834983e017ce765bd3a753b0462dfc (patch)
tree141ea593e76ee954e8bccf0ccc49ac36b1a61bcc /poi-integration/src
parent007a6f6160248475be356ac0199a96a73ce31f8b (diff)
downloadpoi-27b4bdc3f7834983e017ce765bd3a753b0462dfc.tar.gz
poi-27b4bdc3f7834983e017ce765bd3a753b0462dfc.zip
Move org.apache.poi.hssf.dev classes from poi:main to poi:test
Use CloseShieldOutputStream instead of CloseIgnoringInputStream git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895041 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-integration/src')
-rw-r--r--poi-integration/src/test/java/org/apache/poi/stress/HSSFFileHandler.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/poi-integration/src/test/java/org/apache/poi/stress/HSSFFileHandler.java b/poi-integration/src/test/java/org/apache/poi/stress/HSSFFileHandler.java
index 62e0d7cbc3..b009d2ea0b 100644
--- a/poi-integration/src/test/java/org/apache/poi/stress/HSSFFileHandler.java
+++ b/poi-integration/src/test/java/org/apache/poi/stress/HSSFFileHandler.java
@@ -33,7 +33,6 @@ import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
-import org.apache.commons.io.output.NullPrintStream;
import org.junit.jupiter.api.Test;
public class HSSFFileHandler extends SpreadsheetHandler {
@@ -88,10 +87,8 @@ public class HSSFFileHandler extends SpreadsheetHandler {
PrintStream oldOut = System.out;
String fileWithParent = file.getParentFile().getName() + "/" + file.getName();
try {
- System.setOut(new NullPrintStream());
-
- BiffViewer.main(new String[]{file.getAbsolutePath()});
-
+ BiffViewer bv = new BiffViewer();
+ bv.parse(file, null);
assertFalse( EXPECTED_ADDITIONAL_FAILURES.contains(fileWithParent), "Expected Extraction to fail for file " + file + " and handler " + this + ", but did not fail!" );
} catch (OldExcelFormatException e) {
// old excel formats are not supported here