Searched refs:argThat (Results 1 – 7 of 7) sorted by relevance
42 when(mock.simpleMethod(argThat(new ContainsX()))).thenReturn("X"); in stubs_with_hamcrest_matcher()52 verify(mock).simpleMethod(argThat(new ContainsX())); in verifies_with_hamcrest_matcher()68 when(mock.intArgumentReturningInt(argThat(new IntMatcher()))).thenReturn(5); in supports_primitive_matchers()107 argThat(new NonGenericMatcher()); in nonGenericMatcher()113 when(mock.simpleMethod(Mockito.argThat(new ArgumentMatcher<String>() { in coexists_with_mockito_matcher()
15 import static org.mockito.Matchers.argThat;30 verify(mock).simpleMethod(argThat(isStringWithTextFoo())); in shouldNotThrowCCE()
116 when(mock.oneArg(argThat(new ContainsFoo()))).thenReturn("foo"); in shouldUseCustomObjectMatcher()135 return argThat(new StringThatContainsXxx()); in containsTest()149 verify(mock).simpleMethod((String) argThat(new ArgumentMatcher<Object>() { in shouldAnonymousCustomMatcherPrintDefaultDescription()
5 import static org.mockito.Matchers.argThat;99 when(mock.forObject(argThat(new TestMatcher()))).thenReturn("x"); in matchesOverloadsMustBeIgnored()113 when(mock.forObject(argThat(new TestMatcher()))).thenReturn("x"); in matchesWithSubTypeExtendingGenericClass()126 when(mock.forObject(argThat(new GenericMatcher<Integer>()))).thenReturn("x"); in matchesWithSubTypeGenericMethod()
83 Mockito.argThat(capturingMatcher); in capture()
1195 public static <T> T argThat(ArgumentMatcher<T> matcher) { in argThat() method in ArgumentMatchers
60 public static <T> T argThat(Matcher<T> matcher) { in argThat() method in MockitoHamcrest