use of org.springframework.security.web.util.matcher.ELRequestMatcher in project spring-security by spring-projects.
the class ELRequestMatcherTests method testHasHeaderNull.
@Test
public void testHasHeaderNull() throws Exception {
ELRequestMatcher requestMatcher = new ELRequestMatcher("hasHeader('User-Agent','MSIE')");
MockHttpServletRequest request = new MockHttpServletRequest();
assertThat(requestMatcher.matches(request)).isFalse();
}
Aggregations