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