Home
last modified time | relevance | path

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

/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/bugs/varargs/
DVarargsAndAnyObjectPicksUpExtraInvocationsTest.java31 verify(table, times(2)).newRow(anyString(), (String[]) anyVararg()); in shouldVerifyCorrectlyWithAnyVarargs()
41 verify(table, times(2)).newRow(eq("x"), (String[]) anyVararg()); in shouldVerifyCorrectlyNumberOfInvocationsUsingAnyVarargAndEqualArgument()
DVarargsNotPlayingWithAnyObjectTest.java32 verify(mock).run((String[]) anyVararg()); in shouldMatchAnyVararg()
52 when(mock.run((String[]) anyVararg())).thenReturn("foo"); in shouldStubUsingAnyVarargs()
/external/mockito/src/test/java/org/mockitousage/stubbing/
DStubbingWithAdditionalAnswersTest.java18 import static org.mockito.BDDMockito.anyVararg;
58 given(iMethods.varargsObject(eq(1), anyVararg())).will(returnsArgAt(3)); in can_return_expanded_arguments_of_invocation()
/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