Skip to content

Commit

Permalink
Fix java file extension filter in FileFilterTest
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kousen committed Feb 6, 2024
1 parent ecd21bb commit ed567fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/lambdas/FileFilterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ed567fa

Please sign in to comment.