Home
last modified time | relevance | path

Searched refs:anyVararg (Results 1 – 5 of 5) sorted by relevance

/external/mockito/src/test/java/org/mockitousage/bugs/varargs/
DVarargsNotPlayingWithAnyObjectTest.java15 import static org.mockito.Mockito.anyVararg;
37 verify(mock).run((String[]) anyVararg()); in shouldMatchAnyVararg()
51 when(mock.run((String[]) anyVararg())).thenReturn("foo"); in shouldStubUsingAnyVarargs()
DVarargsAndAnyObjectPicksUpExtraInvocationsTest.java31 verify(table, times(2)).newRow(anyString(), (String[]) anyVararg()); in shouldVerifyCorrectlyWithAnyVarargs()
41 verify(table, times(2)).newRow(eq("x"), (String[]) anyVararg()); in shouldVerifyCorrectlyNumberOfInvocationsUsingAnyVarargAndEqualArgument()
/external/mockito/src/test/java/org/mockito/internal/util/reflection/
DParameterizedConstructorInstantiatorTest.java73 …given(resolver.resolveTypeInstances(Matchers.<Class<?>[]>anyVararg())).willReturn(new Object[]{ ob… in should_instantiate_type_if_resolver_provide_matching_types()
86 …given(resolver.resolveTypeInstances(Matchers.<Class<?>[]>anyVararg())).willReturn(new Object[]{ ob… in should_fail_if_an_argument_instance_type_do_not_match_wanted_type()
98 …given(resolver.resolveTypeInstances(Matchers.<Class<?>[]>anyVararg())).willReturn(new Object[]{ nu… in should_report_failure_if_constructor_throws_exception()
111 …given(resolver.resolveTypeInstances(Matchers.<Class<?>[]>anyVararg())).willReturn(new Object[]{ ""… in should_instantiate_type_with_vararg_constructor()
/external/mockito/src/test/java/org/mockitousage/basicapi/
DUsingVarargsTest.java171 when(mock.foo(anyVararg())).thenReturn(-1); in shouldMatchEasilyEmptyVararg()
/external/mockito/src/main/java/org/mockito/
DArgumentMatchers.java258 public static <T> T anyVararg() { in anyVararg() method in ArgumentMatchers