Searched refs:smartNull (Results 1 – 3 of 3) sorted by relevance
/external/mockito/src/test/java/org/mockito/internal/stubbing/defaultanswers/ |
D | ReturnsSmartNullsTest.java | 42 Foo smartNull = (Foo) answer.answer(invocationOf(Foo.class, "get")); in should_return_an_object_that_fails_on_any_method_invocation_for_non_primitives() local 45 smartNull.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() local 56 assertThat(smartNull.toString()) in should_return_an_object_that_allows_object_methods() 65 Foo smartNull = (Foo) answer.answer(invocationOf(Foo.class, "withArgs", "oompa", "lumpa")); in should_print_the_parameters_when_calling_a_method_with_args() local 67 assertThat(smartNull.toString()) in should_print_the_parameters_when_calling_a_method_with_args() 77 Foo smartNull = (Foo) answer.answer(invocationOf(Foo.class, "withArgs", "oompa", "lumpa")); in should_print_the_parameters_on_SmartNullPointerException_message() local 80 smartNull.get(); in should_print_the_parameters_on_SmartNullPointerException_message()
|
/external/mockito/src/test/java/org/mockitousage/stubbing/ |
D | SmartNullsStubbingTest.java | 98 Object smartNull = mock.objectReturningMethod(); in shouldNotThrowSmartNullPointerOnToString() local 100 verify(mock).simpleMethod(smartNull); in shouldNotThrowSmartNullPointerOnToString() 107 Object smartNull = mock.objectReturningMethod(); in shouldNotThrowSmartNullPointerOnObjectMethods() local 108 smartNull.toString(); in shouldNotThrowSmartNullPointerOnObjectMethods() 114 Bar smartNull = foo.getBarWithParams(10, "yes sir"); in shouldShowParameters() local 117 smartNull.boo(); in shouldShowParameters() 128 Bar smartNull = foo.getBarWithParams(10, longStr); in shouldShowParametersWhenParamsAreHuge() local 131 smartNull.boo(); in shouldShowParametersWhenParamsAreHuge()
|
/external/mockito/src/test/java/org/mockitousage/basicapi/ |
D | MocksCreationTest.java | 41 IMethods smartNull = mock.iMethodsReturningMethod(); in shouldCombineMockNameAndSmartNulls() local 48 smartNull.simpleMethod(); in shouldCombineMockNameAndSmartNulls()
|