updated deletion and logging of temporary files to resolve issue #73

Former-commit-id: 566b0629dc20e7f8fb1fa00fa8d7b3485e739815
This commit is contained in:
Jeremy Long
2014-02-28 06:52:51 -05:00
parent 3f4c1e7029
commit 17447d3cdc
4 changed files with 26 additions and 18 deletions

View File

@@ -22,6 +22,7 @@ import org.junit.After;
import org.junit.AfterClass;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import org.junit.Before;
import org.junit.BeforeClass;
@@ -76,7 +77,8 @@ public class FileUtilsTest {
if (!file.exists()) {
fail("Unable to create a temporary file.");
}
FileUtils.delete(file);
boolean status = FileUtils.delete(file);
assertTrue("delete returned a failed status", status);
assertFalse("Temporary file exists after attempting deletion", file.exists());
}
}