deleter.doTempFileCleanup();
assertTrue( file1.exists() ); // This file will be left over
assertFalse( file2.exists() ); // The deleter should have removed this
assertFalse( deleter.hasTempFile( file2.getName() ) ); // After doTempFileCleanup() the list should be empty
// The tearDown should blow away everything else...
deleter.trackTempFile( file2 ); // Add known deleted file to the deleter
deleter.doTempFileCleanup(); // Validates cleanup doesn't choke on missing files
// Test that IllegalArgumentException if passed a null
try {
deleter.trackTempFile( null );
fail();