107108109110111112113114115
@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(); }
116117118119120121122123124
@Test public void matchesMultiSingleFalse() { when(delegate.matches(request)).thenReturn(true); when(delegate2.matches(request)).thenReturn(false); matcher = new OrRequestMatcher(delegate, delegate2); assertThat(matcher.matches(request)).isTrue(); }