Home
last modified time | relevance | path

Searched refs:varargsObject (Results 1 – 6 of 6) sorted by relevance

/external/mockito/src/test/java/org/mockitousage/matchers/
DVerificationAndStubbingUsingMatchersTest.java54 when(three.varargsObject(5, "first arg", "second arg")).thenReturn("stubbed"); in shouldVerifyUsingMatchers()
63 three.varargsObject(10, "first arg", "second arg"); in shouldVerifyUsingMatchers()
65 assertEquals("stubbed", three.varargsObject(5, "first arg", "second arg")); in shouldVerifyUsingMatchers()
70 verify(three).varargsObject(5, "first arg", "second arg"); in shouldVerifyUsingMatchers()
71 verify(three).varargsObject(eq(10), eq("first arg"), startsWith("second")); in shouldVerifyUsingMatchers()
76 verify(three).varargsObject(eq(10), eq("first arg"), startsWith("third")); in shouldVerifyUsingMatchers()
DVarargsTest.java336 when(mock.varargsObject(1, "a","b")).thenReturn("OK"); in shouldNotMatchVaraArgs()
338 Assertions.assertThat(mock.varargsObject(1)).isNull(); in shouldNotMatchVaraArgs()
/external/mockito/src/test/java/org/mockitousage/verification/
DVerificationInOrderMixedWithOrdiraryVerificationTest.java156 mockOne.varargsObject(1, textOne, textOne); in shouldUseEqualsToVerifyMethodVarargs()
157 mockOne.varargsObject(1, textTwo, textTwo); in shouldUseEqualsToVerifyMethodVarargs()
159 verify(mockOne, times(2)).varargsObject(1, textOne, textOne); in shouldUseEqualsToVerifyMethodVarargs()
162 inOrder.verify(mockOne, times(2)).varargsObject(1, textOne, textOne); in shouldUseEqualsToVerifyMethodVarargs()
/external/mockito/src/test/java/org/mockitousage/stubbing/
DStubbingWithAdditionalAnswersTest.java74 given(iMethods.varargsObject(eq(1), any())).will(returnsArgAt(3)); in can_return_expanded_arguments_of_invocation()
76 … assertThat(iMethods.varargsObject(1, "bob", "alexander", "alice", "carl")).isEqualTo("alice"); in can_return_expanded_arguments_of_invocation()
/external/mockito/src/test/java/org/mockitousage/
DIMethods.java163 Object varargsObject(int i, Object... object); in varargsObject() method
DMethodsImpl.java312 public Object varargsObject(int i, Object... object) { in varargsObject() method in MethodsImpl