Skip to content

Commit

Permalink
Add FileUtilsListFilesTest.testListFilesMissing()
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Dec 30, 2024
1 parent ac4507e commit c92b211
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@ public void testListFilesByExtension() {
assertFalse(fileNames.contains("dummy-indexhtml"));
}

@Test
public void testListFilesMissing() {
assertTrue(FileUtils.listFiles(new File(temporaryFolder, "dir/does/not/exist/at/all"), null, false).isEmpty());
}

@Test
public void testListFilesWithDeletion() throws IOException {
final String[] extensions = {"xml", "txt"};
Expand Down

0 comments on commit c92b211

Please sign in to comment.