assertCloseDoesNotModifyFile method was adapted from method with the same name in TestWorkbookFactory

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1736744 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2016-03-27 13:09:50 +00:00
parent 6b6b6a668e
commit 4f4531c67e

View File

@ -835,6 +835,7 @@ public abstract class BaseTestWorkbook {
wb.close(); wb.close();
} }
/* FIXME copied from {@link org.apache.poi.ss.TestWorkbookFactory} */
protected static void assertCloseDoesNotModifyFile(String filename, Workbook wb) throws IOException { protected static void assertCloseDoesNotModifyFile(String filename, Workbook wb) throws IOException {
final byte[] before = HSSFTestDataSamples.getTestDataFileContent(filename); final byte[] before = HSSFTestDataSamples.getTestDataFileContent(filename);
wb.close(); wb.close();