use of org.springframework.security.web.util.matcher.AndRequestMatcher in project spring-security by spring-projects.
the class AndRequestMatcherTests method matchesMultiTrue.
@Test
public void matchesMultiTrue() {
when(delegate.matches(request)).thenReturn(true);
when(delegate2.matches(request)).thenReturn(true);
matcher = new AndRequestMatcher(delegate, delegate2);
assertThat(matcher.matches(request)).isTrue();
}
use of org.springframework.security.web.util.matcher.AndRequestMatcher in project spring-security by spring-projects.
the class AndRequestMatcherTests method matchesMultiBothFalse.
@Test
public void matchesMultiBothFalse() {
when(delegate.matches(request)).thenReturn(false);
when(delegate2.matches(request)).thenReturn(false);
matcher = new AndRequestMatcher(delegate, delegate2);
assertThat(matcher.matches(request)).isFalse();
}
use of org.springframework.security.web.util.matcher.AndRequestMatcher in project spring-security by spring-projects.
the class AndRequestMatcherTests method matchesSingleFalse.
@Test
public void matchesSingleFalse() {
when(delegate.matches(request)).thenReturn(false);
matcher = new AndRequestMatcher(delegate);
assertThat(matcher.matches(request)).isFalse();
}
Aggregations