Home
last modified time | relevance | path

Searched refs:argThat (Results 1 – 7 of 7) 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.java5 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()
/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