]> source.dussan.org Git - poi.git/commitdiff
Adjust to make forbidden-api-check succeed again
authorDominik Stadler <centic@apache.org>
Tue, 19 Sep 2017 19:02:31 +0000 (19:02 +0000)
committerDominik Stadler <centic@apache.org>
Tue, 19 Sep 2017 19:02:31 +0000 (19:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808930 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/testcases/org/apache/poi/dev/TestOOXMLLister.java
src/ooxml/testcases/org/apache/poi/dev/TestOOXMLPrettyPrint.java
src/testcases/org/apache/poi/poifs/dev/TestPOIFSDump.java
src/testcases/org/apache/poi/util/TestHexDump.java

index 3adaa2a954d6f884b0ea8f5a601fe9a1499a20f7..d16b43e2c3fb9c67f0c87739038c26d7478b1248 100644 (file)
 ==================================================================== */
 package org.apache.poi.dev;
 
-import java.io.File;
-import java.io.IOException;
-import java.io.OutputStream;
-import java.io.PrintStream;
+import java.io.*;
 
 import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
 import org.apache.poi.openxml4j.opc.OPCPackage;
@@ -38,14 +35,14 @@ public class TestOOXMLLister {
     private static PrintStream SYSTEM_OUT;
 
     @BeforeClass
-    public static void setUp() {
+    public static void setUp() throws UnsupportedEncodingException {
         SYSTEM_OUT = System.out;
         System.setOut(new PrintStream(new OutputStream() {
             @Override
             public void write(int b) throws IOException {
 
             }
-        }));
+        }, false, "UTF-8"));
     }
 
     @AfterClass
index 261a1575c173378e2e7a8692dcef2194d316e73d..f18bc88287c1f0b693c26ecc0122ac9662f51b77 100644 (file)
@@ -26,10 +26,7 @@ import org.junit.AfterClass;
 import org.junit.BeforeClass;
 import org.junit.Test;
 
-import java.io.File;
-import java.io.IOException;
-import java.io.OutputStream;
-import java.io.PrintStream;
+import java.io.*;
 
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
@@ -39,14 +36,14 @@ public class TestOOXMLPrettyPrint {
     private static PrintStream SYSTEM_OUT;
 
     @BeforeClass
-    public static void setUp() {
+    public static void setUp() throws UnsupportedEncodingException {
         SYSTEM_OUT = System.out;
         System.setOut(new PrintStream(new OutputStream() {
             @Override
             public void write(int b) throws IOException {
 
             }
-        }));
+        }, false, "UTF-8"));
     }
 
     @AfterClass
index 1a2e1af60e1479a298496a4b914f64ac8d703efc..3a1c3603f9567937304daa6c60d1e1e6d4957efa 100644 (file)
@@ -28,13 +28,7 @@ import org.junit.BeforeClass;
 import org.junit.Ignore;
 import org.junit.Test;
 
-import java.io.ByteArrayOutputStream;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileNotFoundException;
-import java.io.IOException;
-import java.io.OutputStream;
-import java.io.PrintStream;
+import java.io.*;
 
 import static org.junit.Assert.*;
 
@@ -42,15 +36,14 @@ public class TestPOIFSDump {
 
     private static PrintStream SYSTEM;
     @BeforeClass
-    public static void setUp() {
+    public static void setUp() throws UnsupportedEncodingException {
         SYSTEM = System.out;
         System.setOut(new PrintStream(new OutputStream() {
             @Override
             public void write(int b) throws IOException {
 
             }
-        }
-        ));
+        }, false, "UTF-8"));
     }
 
     @AfterClass
index f196c9b6e0ae2c946cc83b5a3b7c8611533d076e..af3d8877b056fbc3a4927a18ee09e44620751dac 100644 (file)
@@ -22,13 +22,7 @@ import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.fail;
 
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.OutputStream;
-import java.io.PrintStream;
+import java.io.*;
 
 import org.junit.AfterClass;
 import org.junit.BeforeClass;
@@ -39,14 +33,14 @@ public class TestHexDump {
     private static PrintStream SYSTEM_OUT;
 
     @BeforeClass
-    public static void setUp() {
+    public static void setUp() throws UnsupportedEncodingException {
         SYSTEM_OUT = System.out;
         System.setOut(new PrintStream(new OutputStream() {
             @Override
             public void write(int b) throws IOException {
 
             }
-        }));
+        }, false, "UTF-8"));
     }
 
     @AfterClass