OLD_FILES.add("document/word95err.doc");
OLD_FILES.add("hpsf/TestMickey.doc");
OLD_FILES.add("document/52117.doc");
+ OLD_FILES.add("spreadsheet/60284.xls");
}
private static final Set<String> EXPECTED_FAILURES = new HashSet<String>();
==================================================================== */
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;
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() {
ReSave.main(new String[] { "-bos", reSavedFile.getAbsolutePath() });
} finally {
// clean up the re-saved file
- reSavedFile.delete();
+ assertTrue(!reSavedFile.exists() || reSavedFile.delete());
}
} finally {
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());
}
}