1
0
mirror of synced 2026-08-05 17:57:15 +00:00

DummyRequest supports methods for MvcRequestMatcher

To support MvcRequestMatcher DummyRequest needs to support
getCharacterEncoding() and getAttribute(String)
This commit is contained in:
Rob Winch
2016-07-14 14:13:20 -05:00
parent ada146244e
commit ca170f8479
2 changed files with 15 additions and 0 deletions
@@ -95,6 +95,13 @@ public class HttpSecurityRequestMatchersTests {
.isEqualTo(HttpServletResponse.SC_UNAUTHORIZED);
}
@Test
public void mvcMatcherGetFiltersNoUnsupportedMethodExceptionFromDummyRequest() {
loadConfig(MvcMatcherConfig.class);
assertThat(springSecurityFilterChain.getFilters("/path")).isNotEmpty();
}
@EnableWebSecurity
@Configuration
@EnableWebMvc