Home
last modified time | relevance | path

Searched refs:argThat (Results 1 – 8 of 8) sorted by relevance

/external/mockito/src/test/java/org/mockitousage/matchers/
DHamcrestMatchersTest.java42 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()
DCustomMatcherDoesYieldCCETest.java15 import static org.mockito.Matchers.argThat;
30 verify(mock).simpleMethod(argThat(isStringWithTextFoo())); in shouldNotThrowCCE()
DCustomMatchersTest.java116 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()
/external/mockito/src/test/java/org/mockitousage/bugs/
DCompareMatcherTest.java9 import static org.mockito.Matchers.argThat;
103 when(mock.forObject(argThat(new TestMatcher()))).thenReturn("x"); in matchesOverloadsMustBeIgnored()
117 when(mock.forObject(argThat(new TestMatcher()))).thenReturn("x"); in matchesWithSubTypeExtendingGenericClass()
130 when(mock.forObject(argThat(new GenericMatcher<Integer>()))).thenReturn("x"); in matchesWithSubTypeGenericMethod()
/external/mockito/src/test/java/org/mockito/internal/listeners/
DStubbingLookupNotifierTest.java19 import static org.mockito.ArgumentMatchers.argThat;
55 verify(listener1).onStubbingLookup(argThat(new EventArgumentMatcher())); in call_on_stubbing_lookup_method_of_listeners_with_correct_event()
56 verify(listener2).onStubbingLookup(argThat(new EventArgumentMatcher())); in call_on_stubbing_lookup_method_of_listeners_with_correct_event()
/external/mockito/src/main/java/org/mockito/
DArgumentCaptor.java83 Mockito.argThat(capturingMatcher); in capture()
DArgumentMatchers.java1195 public static <T> T argThat(ArgumentMatcher<T> matcher) { in argThat() method in ArgumentMatchers
/external/mockito/src/main/java/org/mockito/hamcrest/
DMockitoHamcrest.java60 public static <T> T argThat(Matcher<T> matcher) { in argThat() method in MockitoHamcrest