@@ -42,10 +42,10 @@ public class PathSelectorTest {
4242 public void testTree (final @ TempDir Path directory ) throws IOException {
4343 Path foo = Files .createDirectory (directory .resolve ("foo" ));
4444 Path bar = Files .createDirectory (foo .resolve ("bar" ));
45- Path biz = Files .createDirectory (directory .resolve ("biz " ));
45+ Path baz = Files .createDirectory (directory .resolve ("baz " ));
4646 Files .createFile (directory .resolve ("root.txt" ));
4747 Files .createFile (bar .resolve ("leaf.txt" ));
48- Files .createFile (biz .resolve ("excluded.txt" ));
48+ Files .createFile (baz .resolve ("excluded.txt" ));
4949 assertFilteredFilesContains (directory , "" , "root.txt" , "foo/bar/leaf.txt" );
5050 assertFilteredFilesContains (directory , "glob:" , "foo/bar/leaf.txt" );
5151 }
@@ -56,12 +56,12 @@ public void testTree(final @TempDir Path directory) throws IOException {
5656 * @param directory the temporary directory containing the files to test
5757 * @param syntax syntax to test, either an empty string of {@code "glob:"}
5858 * @param expected the expected paths
59- * @throws IOException if an error occurred while listing the files.
59+ * @throws IOException if an error occurred while listing the files
6060 */
6161 private static void assertFilteredFilesContains (final Path directory , final String syntax , final String ... expected )
6262 throws IOException {
6363 var includes = List .of (syntax + "**/*.txt" );
64- var excludes = List .of (syntax + "biz /**" );
64+ var excludes = List .of (syntax + "baz /**" );
6565 var matcher = new PathSelector (directory , includes , excludes , false );
6666 Set <Path > filtered =
6767 new HashSet <>(Files .walk (directory ).filter (matcher ::matches ).toList ());
@@ -82,7 +82,7 @@ private static void assertFilteredFilesContains(final Path directory, final Stri
8282 public void testExcludeOmission () {
8383 Path directory = Path .of ("dummy" );
8484 var includes = List .of ("**/*.java" );
85- var excludes = List .of ("biz /**" );
85+ var excludes = List .of ("baz /**" );
8686 var matcher = new PathSelector (directory , includes , excludes , true );
8787 String s = matcher .toString ();
8888 assertTrue (s .contains ("glob:**/*.java" ));
0 commit comments