@Test public void testGetUserNameMatcherNoUserNameInUri() throws Exception { String uri = "/aaa/bbb"; Matcher m = filter.getUserNameMatcher(uri); boolean isMatch = m.matches(); assertFalse(isMatch); }
protected Matcher getUserNameMatcher(String requestUri) { return USER_NAME_IN_URI_REGEXP.matcher(requestUri); }
UserNameOverrideFilter implements Filter { protected Matcher getUserNameMatcher(String requestUri) { return USER_NAME_IN_URI_REGEXP.matcher(requestUri); } }
UserNameOverrideFilter implements Filter { protected Matcher getUserNameMatcher(String requestUri) { return USER_NAME_IN_URI_REGEXP.matcher(requestUri); }  }
UserNameOverrideFilter implements Filter { protected Matcher getUserNameMatcher(String requestUri) { return USER_NAME_IN_URI_REGEXP.matcher(requestUri); }  @Override void init(FilterConfig filterConfig); @Override void doFilter(ServletRequest request, ServletResponse response, FilterChain chain); @Override void destroy(); }
UserNameOverrideFilter implements Filter { protected Matcher getUserNameMatcher(String requestUri) { return USER_NAME_IN_URI_REGEXP.matcher(requestUri); }  @Override void init(FilterConfig filterConfig); @Override void doFilter(ServletRequest request, ServletResponse response, FilterChain chain); @Override void destroy();  }