This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git


The following commit(s) were added to refs/heads/master by this push:
     new c92b2115d Add FileUtilsListFilesTest.testListFilesMissing()
c92b2115d is described below

commit c92b2115d3d2cf191bd69979715095fe522b473f
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Mon Dec 30 12:53:03 2024 -0500

    Add FileUtilsListFilesTest.testListFilesMissing()
---
 src/test/java/org/apache/commons/io/FileUtilsListFilesTest.java | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/test/java/org/apache/commons/io/FileUtilsListFilesTest.java 
b/src/test/java/org/apache/commons/io/FileUtilsListFilesTest.java
index 926f67fa3..cee9b50de 100644
--- a/src/test/java/org/apache/commons/io/FileUtilsListFilesTest.java
+++ b/src/test/java/org/apache/commons/io/FileUtilsListFilesTest.java
@@ -212,6 +212,11 @@ public class FileUtilsListFilesTest {
         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"};

Reply via email to