aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2016-10-20 20:31:57 +0000
committerDominik Stadler <centic@apache.org>2016-10-20 20:31:57 +0000
commit81eccf4d2e6cb70a120d2451e8e1fc5a883b37a0 (patch)
treed9d0bf7072fde84331ba1f52c7db8d77111ebed4 /src/testcases/org/apache
parent68d0f816e968e2061d08afb9d22cb460502d2a28 (diff)
downloadpoi-81eccf4d2e6cb70a120d2451e8e1fc5a883b37a0.tar.gz
poi-81eccf4d2e6cb70a120d2451e8e1fc5a883b37a0.zip
Exclude new BIFF5 file in some unit tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1765876 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache')
-rw-r--r--src/testcases/org/apache/poi/hssf/dev/TestReSave.java18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/testcases/org/apache/poi/hssf/dev/TestReSave.java b/src/testcases/org/apache/poi/hssf/dev/TestReSave.java
index 960fd132f0..80925bae13 100644
--- a/src/testcases/org/apache/poi/hssf/dev/TestReSave.java
+++ b/src/testcases/org/apache/poi/hssf/dev/TestReSave.java
@@ -16,13 +16,6 @@
==================================================================== */
package org.apache.poi.hssf.dev;
-import static org.junit.Assert.assertTrue;
-
-import java.io.File;
-import java.io.PrintStream;
-import java.util.ArrayList;
-import java.util.List;
-
import org.apache.poi.EncryptedDocumentException;
import org.apache.poi.POIDataSamples;
import org.apache.poi.hssf.OldExcelFormatException;
@@ -32,6 +25,11 @@ import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
+import java.io.File;
+import java.io.PrintStream;
+
+import static org.junit.Assert.assertTrue;
+
public class TestReSave extends BaseXLSIteratingTest {
@BeforeClass
public static void setup() {
@@ -76,7 +74,7 @@ public class TestReSave extends BaseXLSIteratingTest {
ReSave.main(new String[] { "-bos", reSavedFile.getAbsolutePath() });
} finally {
// clean up the re-saved file
- reSavedFile.delete();
+ assertTrue(!reSavedFile.exists() || reSavedFile.delete());
}
} finally {
@@ -92,10 +90,6 @@ public class TestReSave extends BaseXLSIteratingTest {
dataDirName = "test-data";
}
- List<String> failed = new ArrayList<String>();
runOneFile(new File(dataDirName + "/spreadsheet", "49931.xls"));
-
- assertTrue("Expected to have no failed except the ones excluded, but had: " + failed,
- failed.isEmpty());
}
}