Search in sources :

Example 6 with OrRequestMatcher

use of org.springframework.security.web.util.matcher.OrRequestMatcher in project spring-security by spring-projects.

the class OrRequestMatcherTests method matchesMultiBothFalse.

@Test
public void matchesMultiBothFalse() {
    when(delegate.matches(request)).thenReturn(false);
    when(delegate2.matches(request)).thenReturn(false);
    matcher = new OrRequestMatcher(delegate, delegate2);
    assertThat(matcher.matches(request)).isFalse();
}
Also used : OrRequestMatcher(org.springframework.security.web.util.matcher.OrRequestMatcher) Test(org.junit.Test)

Aggregations

OrRequestMatcher (org.springframework.security.web.util.matcher.OrRequestMatcher)6 Test (org.junit.Test)5 AndRequestMatcher (org.springframework.security.web.util.matcher.AndRequestMatcher)1 MediaTypeRequestMatcher (org.springframework.security.web.util.matcher.MediaTypeRequestMatcher)1 NegatedRequestMatcher (org.springframework.security.web.util.matcher.NegatedRequestMatcher)1 RequestHeaderRequestMatcher (org.springframework.security.web.util.matcher.RequestHeaderRequestMatcher)1 RequestMatcher (org.springframework.security.web.util.matcher.RequestMatcher)1 ContentNegotiationStrategy (org.springframework.web.accept.ContentNegotiationStrategy)1 HeaderContentNegotiationStrategy (org.springframework.web.accept.HeaderContentNegotiationStrategy)1