Lines Matching refs:pattern
35 static void match(String name, String pattern, boolean expectedToMatch) {
36 System.out.format("%s -> %s", name, pattern);
39 .getPathMatcher("glob:" + pattern).matches(file);
52 static void assertMatch(String path, String pattern) {
53 match(path, pattern, true);
56 static void assertNotMatch(String path, String pattern) {
57 match(path, pattern, false);
60 static void assertBadPattern(String path, String pattern) {
61 System.out.format("Compile bad pattern %s\t", pattern);
63 FileSystems.getDefault().getPathMatcher("glob:" + pattern);
71 static void assertRegExMatch(String path, String pattern) {
72 System.out.format("Test regex pattern: %s", pattern);
75 .getPathMatcher("regex:" + pattern).matches(file);