From ed567fa43bbb1e4a8bb393555219f1562d503507 Mon Sep 17 00:00:00 2001 From: Ken Kousen Date: Tue, 6 Feb 2024 12:09:29 -0500 Subject: [PATCH] Fix java file extension filter in FileFilterTest The file extension filter in the FileFilterTest class was corrected to specifically filter for files ending in ".java". Previously, the filter would look for any file ending in ".", which was not accurate or intended. --- src/test/java/lambdas/FileFilterTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/lambdas/FileFilterTest.java b/src/test/java/lambdas/FileFilterTest.java index 24e956b..f3a1036 100644 --- a/src/test/java/lambdas/FileFilterTest.java +++ b/src/test/java/lambdas/FileFilterTest.java @@ -73,7 +73,7 @@ void listJavaSourceFiles_fileNameFilter() { @Test void listJavaSourceFiles_fileFilter() { - File[] javaFiles = root.listFiles(file -> file.getName().endsWith(".")); + File[] javaFiles = root.listFiles(file -> file.getName().endsWith(".java")); assert javaFiles != null; assertEquals(8, javaFiles.length); }