aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/ddf
diff options
context:
space:
mode:
authorJaven O'Neal <onealj@apache.org>2016-09-10 18:47:00 +0000
committerJaven O'Neal <onealj@apache.org>2016-09-10 18:47:00 +0000
commit70312d46aff1dcaafeb87fccecaae6b4ef4f7747 (patch)
tree36890cb3e4973572b502ea4d656b5e000b665a64 /src/testcases/org/apache/poi/ddf
parenteb52b745000846bebd6a2e92aa46a8c349c074e6 (diff)
downloadpoi-70312d46aff1dcaafeb87fccecaae6b4ef4f7747.tar.gz
poi-70312d46aff1dcaafeb87fccecaae6b4ef4f7747.zip
move duplicated NullOutputStream classes to test suite utilities
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1760203 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/ddf')
-rw-r--r--src/testcases/org/apache/poi/ddf/TestEscherDump.java22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/testcases/org/apache/poi/ddf/TestEscherDump.java b/src/testcases/org/apache/poi/ddf/TestEscherDump.java
index 9b72d9acd2..95b0745205 100644
--- a/src/testcases/org/apache/poi/ddf/TestEscherDump.java
+++ b/src/testcases/org/apache/poi/ddf/TestEscherDump.java
@@ -20,9 +20,7 @@ package org.apache.poi.ddf;
import static org.junit.Assert.assertTrue;
import java.io.ByteArrayInputStream;
-import java.io.IOException;
import java.io.InputStream;
-import java.io.OutputStream;
import java.io.PrintStream;
import java.io.UnsupportedEncodingException;
@@ -30,6 +28,7 @@ import org.apache.poi.POIDataSamples;
import org.apache.poi.hssf.HSSFTestDataSamples;
import org.apache.poi.util.IOUtils;
import org.apache.poi.util.LocaleUtil;
+import org.apache.poi.util.NullOutputStream;
import org.junit.BeforeClass;
import org.junit.Test;
@@ -83,23 +82,6 @@ public class TestEscherDump {
@SuppressWarnings("resource")
private NullPrinterStream() throws UnsupportedEncodingException {
super(new NullOutputStream(),true,LocaleUtil.CHARSET_1252.name());
- }
- /**
- * Implementation of an OutputStream which does nothing, used
- * to redirect stdout to avoid spamming the console with output
- */
- private static class NullOutputStream extends OutputStream {
- @Override
- public void write(byte[] b, int off, int len) {
- }
-
- @Override
- public void write(int b) {
- }
-
- @Override
- public void write(byte[] b) throws IOException {
- }
- }
+ }
}
}