GithubURLParser { public boolean isValid(@NotNull String url) { return GITHUB_PATTERN.matcher(url).matches(); } @Inject  GithubURLParser(URLFetcher urlFetcher, DevfileFilenamesProvider devfileFilenamesProvider); boolean isValid(@NotNull String url); GithubUrl parse(String url);  }
@Test(dataProvider = "UrlsProvider") public void checkRegexp(String url) { assertTrue(githubUrlParser.isValid(url), "url " + url + " is invalid"); }