Почему AntPathRequestMatcher
не соответствует этому MockHttpServletRequest
? Я ожидаю, что пройдёт следующий тест:
@Test
public void matcherMatches() {
MockHttpServletRequest req = new MockHttpServletRequest("GET", "/login");
AntPathRequestMatcher matcher = new AntPathRequestMatcher("/login/**");
Assert.assertTrue(matcher.matches(req));
}
Но это не так - есть ли что-то в MockHttpServletRequest
, что я пропускаю?