zhuzhurk commented on a change in pull request #9950: [FLINK-14464][runtime] Introduce the AbstractUserClassPathJobGraphRetriever URL: https://github.com/apache/flink/pull/9950#discussion_r339283797
########## File path: flink-core/src/test/java/org/apache/flink/util/FileUtilsTest.java ########## @@ -259,6 +267,67 @@ public void testCompression() throws IOException { assertDirEquals(compressDir.resolve(originalDir), extractDir.resolve(originalDir)); } + @Test + public void testListFilesInPathWithoutAnyFileReturnEmptyList() throws IOException { + final java.nio.file.Path testDir = tmp.newFolder("_test_0").toPath(); + + assertTrue(Collections.<File>emptyList() == + FileUtils.listFilesInPath(testDir.toFile(), f -> f.getName().endsWith(".jar"))); Review comment: ```suggestion assertTrue(assertTrue(FileUtils.listFilesInPath(testDir.toFile(), f -> f.getName().endsWith(".jar")).isEmpty()); ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services