File tree Expand file tree Collapse file tree
microsphere-java-core/src/test/java/io/microsphere/io Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717import static io .microsphere .concurrent .ExecutorUtils .shutdown ;
1818import static io .microsphere .io .FileUtils .cleanDirectory ;
1919import static io .microsphere .io .FileUtils .deleteDirectory ;
20+ import static io .microsphere .io .FileUtils .deleteDirectoryOnExit ;
2021import static io .microsphere .io .FileUtils .forceDelete ;
2122import static io .microsphere .io .FileUtils .forceDeleteOnExit ;
2223import static io .microsphere .io .FileUtils .getCanonicalFile ;
@@ -282,7 +283,12 @@ public void testDeleteDirectoryOnExit() throws IOException {
282283 createRandomFile (tempDir );
283284 }
284285 }
285- forceDeleteOnExit (tempDir );
286+ deleteDirectoryOnExit (tempDir );
287+ }
288+
289+ @ Test
290+ public void testDeleteDirectoryOnExitOnNotExists () throws IOException {
291+ deleteDirectoryOnExit (new File ("not-exists" ));
286292 }
287293
288294 @ Test
You can’t perform that action at this time.
0 commit comments