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
This commit is contained in:
Dominik Stadler 2016-10-20 20:31:57 +00:00
parent 68d0f816e9
commit 81eccf4d2e
2 changed files with 7 additions and 12 deletions

View File

@ -189,6 +189,7 @@ public class TestAllFiles {
OLD_FILES.add("document/word95err.doc"); OLD_FILES.add("document/word95err.doc");
OLD_FILES.add("hpsf/TestMickey.doc"); OLD_FILES.add("hpsf/TestMickey.doc");
OLD_FILES.add("document/52117.doc"); OLD_FILES.add("document/52117.doc");
OLD_FILES.add("spreadsheet/60284.xls");
} }
private static final Set<String> EXPECTED_FAILURES = new HashSet<String>(); private static final Set<String> EXPECTED_FAILURES = new HashSet<String>();

View File

@ -16,13 +16,6 @@
==================================================================== */ ==================================================================== */
package org.apache.poi.hssf.dev; 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.EncryptedDocumentException;
import org.apache.poi.POIDataSamples; import org.apache.poi.POIDataSamples;
import org.apache.poi.hssf.OldExcelFormatException; import org.apache.poi.hssf.OldExcelFormatException;
@ -32,6 +25,11 @@ import org.junit.BeforeClass;
import org.junit.Ignore; import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import java.io.File;
import java.io.PrintStream;
import static org.junit.Assert.assertTrue;
public class TestReSave extends BaseXLSIteratingTest { public class TestReSave extends BaseXLSIteratingTest {
@BeforeClass @BeforeClass
public static void setup() { public static void setup() {
@ -76,7 +74,7 @@ public class TestReSave extends BaseXLSIteratingTest {
ReSave.main(new String[] { "-bos", reSavedFile.getAbsolutePath() }); ReSave.main(new String[] { "-bos", reSavedFile.getAbsolutePath() });
} finally { } finally {
// clean up the re-saved file // clean up the re-saved file
reSavedFile.delete(); assertTrue(!reSavedFile.exists() || reSavedFile.delete());
} }
} finally { } finally {
@ -92,10 +90,6 @@ public class TestReSave extends BaseXLSIteratingTest {
dataDirName = "test-data"; dataDirName = "test-data";
} }
List<String> failed = new ArrayList<String>();
runOneFile(new File(dataDirName + "/spreadsheet", "49931.xls")); runOneFile(new File(dataDirName + "/spreadsheet", "49931.xls"));
assertTrue("Expected to have no failed except the ones excluded, but had: " + failed,
failed.isEmpty());
} }
} }