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); }