Searched refs:mixedVarargs (Results 1 – 6 of 6) sorted by relevance
/external/mockito/src/test/java/org/mockitousage/basicapi/ |
D | UsingVarargsTest.java | 146 MixedVarargs mixedVarargs = mock(MixedVarargs.class); in shouldStubCorrectlyWhenMixedVarargsUsed() local 147 when(mixedVarargs.doSomething("hello", (String[])null)).thenReturn("hello"); in shouldStubCorrectlyWhenMixedVarargsUsed() 148 when(mixedVarargs.doSomething("goodbye", (String[])null)).thenReturn("goodbye"); in shouldStubCorrectlyWhenMixedVarargsUsed() 150 String result = mixedVarargs.doSomething("hello",(String[]) null); in shouldStubCorrectlyWhenMixedVarargsUsed() 153 verify(mixedVarargs).doSomething("hello", (String[])null); in shouldStubCorrectlyWhenMixedVarargsUsed() 159 MixedVarargs mixedVarargs = mock(MixedVarargs.class); in shouldStubCorrectlyWhenDoubleStringAndMixedVarargsUsed() local 160 when(mixedVarargs.doSomething("one", "two", (String[])null)).thenReturn("hello"); in shouldStubCorrectlyWhenDoubleStringAndMixedVarargsUsed() 161 when(mixedVarargs.doSomething("1", "2", (String[])null)).thenReturn("goodbye"); in shouldStubCorrectlyWhenDoubleStringAndMixedVarargsUsed() 163 String result = mixedVarargs.doSomething("one", "two", (String[])null); in shouldStubCorrectlyWhenDoubleStringAndMixedVarargsUsed()
|
/external/mockito/src/test/java/org/mockito/internal/invocation/ |
D | MatcherApplicationStrategyTest.java | 128 invocation = mixedVarargs(1, "1", "2"); in shouldNotAllowAnyObjectWithMixedVarargs() 141 invocation = mixedVarargs(1, "1", "2"); in shouldAllowAnyObjectWithMixedVarargs() 154 invocation = mixedVarargs(1, "1", "2"); in shouldAnyObjectVarargDealWithDifferentSizeOfArgs() 169 invocation = mixedVarargs(null, null, "2"); in shouldMatchAnyVarargEvenIfOneOfTheArgsIsNull() 214 private Invocation mixedVarargs(Object a, String... s) { in mixedVarargs() method in MatcherApplicationStrategyTest 215 mock.mixedVarargs(a, s); in mixedVarargs()
|
D | InvocationMatcherTest.java | 152 mock.mixedVarargs(1, "a", "b"); in should_capture_varargs_as_vararg()
|
/external/mockito/src/test/java/org/mockitousage/matchers/ |
D | CapturingArgumentsTest.java | 257 mock.mixedVarargs(42, "a", "b", "c"); in should_capture_vararg() 260 verify(mock).mixedVarargs(any(), argumentCaptor.capture()); in should_capture_vararg() 270 mock.mixedVarargs(42, "a", "b", "c"); in should_capture_all_vararg() 271 mock.mixedVarargs(42, "again ?!"); in should_capture_all_vararg() 274 verify(mock, times(2)).mixedVarargs(any(), argumentCaptor.capture()); in should_capture_all_vararg() 298 mock.mixedVarargs(42, "a", "b", "c"); in captures_correctly_when_captor_used_multiple_times() 302 …verify(mock).mixedVarargs(any(), argumentCaptor.capture(), argumentCaptor.capture(), argumentCapto… in captures_correctly_when_captor_used_multiple_times()
|
/external/mockito/src/test/java/org/mockitousage/ |
D | IMethods.java | 173 void mixedVarargs(Object i, String ... string); in mixedVarargs() method
|
D | MethodsImpl.java | 328 public void mixedVarargs(Object i, String... string) { in mixedVarargs() method in MethodsImpl
|