|
|
|
|
|
|
|
|
import org.apache.poi.poifs.filesystem.POIFSFileSystem; |
|
|
import org.apache.poi.poifs.filesystem.POIFSFileSystem; |
|
|
import org.apache.poi.util.LocaleUtil; |
|
|
import org.apache.poi.util.LocaleUtil; |
|
|
import org.apache.poi.util.RecordFormatException; |
|
|
import org.apache.poi.util.RecordFormatException; |
|
|
|
|
|
import org.junit.jupiter.api.Disabled; |
|
|
import org.junit.jupiter.api.Test; |
|
|
import org.junit.jupiter.api.Test; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
|
|
|
|
@Disabled("Redirecting System.out/err is bad in concurrent test environment") |
|
|
void testMainUsage() { |
|
|
void testMainUsage() { |
|
|
PrintStream save = System.err; |
|
|
PrintStream save = System.err; |
|
|
SecurityManager sm = System.getSecurityManager(); |
|
|
SecurityManager sm = System.getSecurityManager(); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
|
|
|
|
@Disabled("Redirecting System.out/err is bad in concurrent test environment") |
|
|
void testMain() throws IOException { |
|
|
void testMain() throws IOException { |
|
|
File file = HSSFTestDataSamples.getSampleFile("testEXCEL_3.xls"); |
|
|
File file = HSSFTestDataSamples.getSampleFile("testEXCEL_3.xls"); |
|
|
PrintStream save = System.out; |
|
|
PrintStream save = System.out; |