diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2015-09-11 00:56:16 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2015-09-11 00:56:16 +0000 |
commit | 17d8c71a657e79b204fe0675edfab305251b0e4f (patch) | |
tree | b210dd2aa1f73c788e4e3d646b64dce16cddd584 /src/testcases/org/apache/poi/ddf/TestEscherDump.java | |
parent | 9f26731f44ba4eccabdb82f0a23f91eb755787fc (diff) | |
download | poi-17d8c71a657e79b204fe0675edfab305251b0e4f.tar.gz poi-17d8c71a657e79b204fe0675edfab305251b0e4f.zip |
More forbidden apis fixes (added main-tests to the check)
and a few junit4 upgrades
... hopefully this doesn't crash the build again ... :|
to simulate the tests on jenkins on the local developer box, uncomment the UTC lines in the build.xml
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1702356 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/ddf/TestEscherDump.java')
-rw-r--r-- | src/testcases/org/apache/poi/ddf/TestEscherDump.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/testcases/org/apache/poi/ddf/TestEscherDump.java b/src/testcases/org/apache/poi/ddf/TestEscherDump.java index 718585592f..efc6427144 100644 --- a/src/testcases/org/apache/poi/ddf/TestEscherDump.java +++ b/src/testcases/org/apache/poi/ddf/TestEscherDump.java @@ -23,12 +23,15 @@ import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.OutputStream; import java.io.PrintStream; +import java.io.UnsupportedEncodingException; 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.junit.Test; +@SuppressWarnings("resource") public class TestEscherDump { @Test public void testSimple() throws Exception { @@ -64,8 +67,8 @@ public class TestEscherDump { * to redirect stdout to avoid spamming the console with output */ private static class NullPrinterStream extends PrintStream { - private NullPrinterStream() { - super(new NullOutputStream()); + private NullPrinterStream() throws UnsupportedEncodingException { + super(new NullOutputStream(),true,LocaleUtil.CHARSET_1252.name()); } /** * Implementation of an OutputStream which does nothing, used |