Home
last modified time | relevance | path

Searched refs:invocationOf (Results 1 – 4 of 4) sorted by relevance

/external/mockito/src/test/java/org/mockito/internal/stubbing/defaultanswers/
DReturnsSmartNullsTest.java22 … assertEquals(false , answer.answer(invocationOf(HasPrimitiveMethods.class, "booleanMethod"))); in should_return_the_usual_default_values_for_primitives()
23 … assertEquals((char) 0, answer.answer(invocationOf(HasPrimitiveMethods.class, "charMethod"))); in should_return_the_usual_default_values_for_primitives()
24 … assertEquals((byte) 0, answer.answer(invocationOf(HasPrimitiveMethods.class, "byteMethod"))); in should_return_the_usual_default_values_for_primitives()
25 … assertEquals((short) 0, answer.answer(invocationOf(HasPrimitiveMethods.class, "shortMethod"))); in should_return_the_usual_default_values_for_primitives()
26 … assertEquals(0, answer.answer(invocationOf(HasPrimitiveMethods.class, "intMethod"))); in should_return_the_usual_default_values_for_primitives()
27 … assertEquals(0L, answer.answer(invocationOf(HasPrimitiveMethods.class, "longMethod"))); in should_return_the_usual_default_values_for_primitives()
28 … assertEquals(0f, answer.answer(invocationOf(HasPrimitiveMethods.class, "floatMethod"))); in should_return_the_usual_default_values_for_primitives()
29 … assertEquals(0d, answer.answer(invocationOf(HasPrimitiveMethods.class, "doubleMethod"))); in should_return_the_usual_default_values_for_primitives()
42 Foo smartNull = (Foo) answer.answer(invocationOf(Foo.class, "get")); in should_return_an_object_that_fails_on_any_method_invocation_for_non_primitives()
54 Foo smartNull = (Foo) answer.answer(invocationOf(Foo.class, "get")); in should_return_an_object_that_allows_object_methods()
[all …]
DReturnsMocksTest.java48 … assertEquals(false, answer.answer(invocationOf(HasPrimitiveMethods.class, "booleanMethod"))); in should_return_the_usual_default_values_for_primitives()
49 … assertEquals((char) 0, answer.answer(invocationOf(HasPrimitiveMethods.class, "charMethod"))); in should_return_the_usual_default_values_for_primitives()
50 … assertEquals((byte) 0, answer.answer(invocationOf(HasPrimitiveMethods.class, "byteMethod"))); in should_return_the_usual_default_values_for_primitives()
51 … assertEquals((short) 0, answer.answer(invocationOf(HasPrimitiveMethods.class, "shortMethod"))); in should_return_the_usual_default_values_for_primitives()
52 assertEquals(0, answer.answer(invocationOf(HasPrimitiveMethods.class, "intMethod"))); in should_return_the_usual_default_values_for_primitives()
53 assertEquals(0L, answer.answer(invocationOf(HasPrimitiveMethods.class, "longMethod"))); in should_return_the_usual_default_values_for_primitives()
54 assertEquals(0f, answer.answer(invocationOf(HasPrimitiveMethods.class, "floatMethod"))); in should_return_the_usual_default_values_for_primitives()
55 assertEquals(0d, answer.answer(invocationOf(HasPrimitiveMethods.class, "doubleMethod"))); in should_return_the_usual_default_values_for_primitives()
66 … String[] ret = (String[]) values.answer(invocationOf(StringMethods.class, "stringArrayMethod")); in should_return_empty_array()
74 assertEquals("", values.answer(invocationOf(StringMethods.class, "stringMethod"))); in should_return_empty_string()
DForwardsInvocationsTest.java28 …assertEquals(4, forwardsInvocations.answer(invocationOf(Foo.class, "bar", "b", new Object[] {12, "… in should_call_method_with_varargs()
34 … assertEquals(1, forwardsInvocations.answer(invocationOf(Foo.class, "bar", "b", new Object[] {}))); in should_call_method_with_empty_varargs()
/external/mockito/src/test/java/org/mockitoutil/
DTestBase.java63 …protected static Invocation invocationOf(Class<?> type, String methodName, Object ... args) throws… in invocationOf() method in TestBase