@Test public void getApplyAsContainingFilter() { assertThat(urlFilterAnalyzer.getApplyAsContainingFilter("/test/get"), is(nullValue())); assertThat(urlFilterAnalyzer.getApplyAsContainingFilter("*/test/get"), is(nullValue())); assertThat(urlFilterAnalyzer.getApplyAsContainingFilter("*/test/get*"), is("/test/get")); assertThat(urlFilterAnalyzer.getApplyAsContainingFilter("*/test/*get"), is("/test/")); }
String getApplyAsContainingFilter(String filter) { Matcher matcher = applyAsContainingPattern.matcher(filter); if (matcher.matches()) { return matcher.group(1); } return null; }
UrlFilterAnalyzer { String getApplyAsContainingFilter(String filter) { Matcher matcher = applyAsContainingPattern.matcher(filter); if (matcher.matches()) { return matcher.group(1); } return null; } }
UrlFilterAnalyzer { String getApplyAsContainingFilter(String filter) { Matcher matcher = applyAsContainingPattern.matcher(filter); if (matcher.matches()) { return matcher.group(1); } return null; } UrlFilterAnalyzer(); }
UrlFilterAnalyzer { String getApplyAsContainingFilter(String filter) { Matcher matcher = applyAsContainingPattern.matcher(filter); if (matcher.matches()) { return matcher.group(1); } return null; } UrlFilterAnalyzer();  }
UrlFilterAnalyzer { String getApplyAsContainingFilter(String filter) { Matcher matcher = applyAsContainingPattern.matcher(filter); if (matcher.matches()) { return matcher.group(1); } return null; } UrlFilterAnalyzer();   }