diff options
author | Dominik Stadler <centic@apache.org> | 2015-08-25 08:30:49 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2015-08-25 08:30:49 +0000 |
commit | 4a5705cdc21c6a954d6c54e9b3367d0c94f50c15 (patch) | |
tree | 10b1e5a11fc0f80caededdbf708fa2e509628f01 /src/testcases/org/apache/poi/hssf/dev/TestBiffDrawingToXml.java | |
parent | 5f0be5c2213d5d9ef42c0267a67c562aacd34991 (diff) | |
download | poi-4a5705cdc21c6a954d6c54e9b3367d0c94f50c15.tar.gz poi-4a5705cdc21c6a954d6c54e9b3367d0c94f50c15.zip |
Refactor BaseXLSIteratingTest into a Parameterized test to better show which files failed
Simplify exclusion handling
Exclude testEXCEL_3.xls and testEXCEL_4.xls in two tests, not sure why this worked before?!
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1697601 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/dev/TestBiffDrawingToXml.java')
-rw-r--r-- | src/testcases/org/apache/poi/hssf/dev/TestBiffDrawingToXml.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/testcases/org/apache/poi/hssf/dev/TestBiffDrawingToXml.java b/src/testcases/org/apache/poi/hssf/dev/TestBiffDrawingToXml.java index e141608959..2a14b906ca 100644 --- a/src/testcases/org/apache/poi/hssf/dev/TestBiffDrawingToXml.java +++ b/src/testcases/org/apache/poi/hssf/dev/TestBiffDrawingToXml.java @@ -20,7 +20,6 @@ import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import java.io.PrintStream; -import java.util.List; import org.junit.Ignore; import org.junit.Test; @@ -42,13 +41,13 @@ public class TestBiffDrawingToXml extends BaseXLSIteratingTest { } @Override - void runOneFile(String dir, String file, List<String> failed) + void runOneFile(File file) throws Exception { PrintStream save = System.out; try { //System.setOut(new PrintStream(TestBiffViewer.NULL_OUTPUT_STREAM)); // use a NullOutputStream to not write the bytes anywhere for best runtime - InputStream wb = new FileInputStream(new File(dir, file)); + InputStream wb = new FileInputStream(file); try { BiffDrawingToXml.writeToFile(NULL_OUTPUT_STREAM, wb, false, new String[] {}); } finally { |