==================================================================== */
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;
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
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;
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
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.*;
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
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;
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