aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/hssf/dev/TestBiffDrawingToXml.java
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2016-03-21 00:14:21 +0000
committerAndreas Beeker <kiwiwings@apache.org>2016-03-21 00:14:21 +0000
commitfe653de0e656256db8bcbef399116d598355b5bc (patch)
tree2b934b78fea768a14dcc54e537260e89f5aebaf6 /src/testcases/org/apache/poi/hssf/dev/TestBiffDrawingToXml.java
parente826364ac22efb471eb0f720040a438cabf00027 (diff)
downloadpoi-fe653de0e656256db8bcbef399116d598355b5bc.tar.gz
poi-fe653de0e656256db8bcbef399116d598355b5bc.zip
fix eclipse warnings
close resources git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1735912 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.java33
1 files changed, 15 insertions, 18 deletions
diff --git a/src/testcases/org/apache/poi/hssf/dev/TestBiffDrawingToXml.java b/src/testcases/org/apache/poi/hssf/dev/TestBiffDrawingToXml.java
index 2a14b906ca..039a153500 100644
--- a/src/testcases/org/apache/poi/hssf/dev/TestBiffDrawingToXml.java
+++ b/src/testcases/org/apache/poi/hssf/dev/TestBiffDrawingToXml.java
@@ -21,33 +21,30 @@ import java.io.FileInputStream;
import java.io.InputStream;
import java.io.PrintStream;
-import org.junit.Ignore;
-import org.junit.Test;
-
public class TestBiffDrawingToXml extends BaseXLSIteratingTest {
static {
- // TODO: is it ok to fail these?
- // Look at the output of the test for the detailed stacktrace of the failures...
-// EXCLUDED.add("password.xls");
-// EXCLUDED.add("XRefCalc.xls");
-// EXCLUDED.add("43493.xls");
-// EXCLUDED.add("51832.xls");
- }
-
- @Override
- @Ignore("Not yet done, nearly all files fail with various errors, remove this method when done to use the one from the abstract base class!...")
- @Test
- public void testMain() throws Exception {
+ EXCLUDED.add("35897-type4.xls"); // unsupported crypto api header
+ EXCLUDED.add("43493.xls"); // HSSFWorkbook cannot open it as well
+ EXCLUDED.add("46904.xls");
+ EXCLUDED.add("44958_1.xls");
+ EXCLUDED.add("51832.xls");
+ EXCLUDED.add("59074.xls");
+ EXCLUDED.add("password.xls");
+ EXCLUDED.add("testEXCEL_2.xls"); // Biff 2 / Excel 2, pre-OLE2
+ EXCLUDED.add("testEXCEL_3.xls"); // Biff 3 / Excel 3, pre-OLE2
+ EXCLUDED.add("testEXCEL_4.xls"); // Biff 4 / Excel 4, pre-OLE2
+ EXCLUDED.add("testEXCEL_5.xls"); // Biff 5 / Excel 5
+ EXCLUDED.add("testEXCEL_95.xls"); // Biff 5 / Excel 95
+ EXCLUDED.add("xor-encryption-abc.xls");
}
@Override
- void runOneFile(File file)
- throws Exception {
+ void runOneFile(File pFile) 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(file);
+ InputStream wb = new FileInputStream(pFile);
try {
BiffDrawingToXml.writeToFile(NULL_OUTPUT_STREAM, wb, false, new String[] {});
} finally {