Home
last modified time | relevance | path

Searched refs:delegatesTo (Results 1 – 3 of 3) sorted by relevance

/external/mockito/src/test/java/org/mockitousage/stubbing/
DStubbingWithDelegateTest.java20 import static org.mockito.AdditionalAnswers.delegatesTo;
62 List<String> mock = mock(List.class, delegatesTo(delegatedList)); in when_not_stubbed_delegate_should_be_called()
73 List<String> mock = mock(List.class, delegatesTo(delegatedList)); in when_stubbed_the_delegate_should_not_be_called()
87 List<String> mockedList = mock(List.class, delegatesTo(delegatedList)); in delegate_should_not_be_called_when_stubbed2()
99 IMethods methods = mock(IMethods.class, delegatesTo(new MethodsImpl())); in null_wrapper_dont_throw_exception_from_org_mockito_package()
111 List<String> mock = mock(List.class, delegatesTo(new FakeList<String>())); in instance_of_different_class_can_be_called()
119 List<String> mock = mock(List.class, delegatesTo(new FakeList<String>())); in method_with_subtype_return_can_be_called()
127 List<String> mock = mock(List.class, delegatesTo(new FakeList<String>())); in calling_missing_method_should_throw_exception()
139 List<String> mock = mock(List.class, delegatesTo(new FakeListWithWrongMethods<String>())); in calling_method_with_wrong_primitive_return_should_throw_exception()
151 List<String> mock = mock(List.class, delegatesTo(new FakeListWithWrongMethods<String>())); in calling_method_with_wrong_reference_return_should_throw_exception()
[all …]
DStubbingWithDelegateVarArgsTest.java6 import static org.mockito.AdditionalAnswers.delegatesTo;
28 .defaultAnswer(delegatesTo(new FooImpl()))); in should_not_fail_when_calling_varargs_method()
35 .defaultAnswer(delegatesTo(new FooImpl()))); in should_not_fail_when_calling_varargs_method_without_arguments()
43 .defaultAnswer(delegatesTo(new FooImpl()))); in should_not_fail_when_calling_varargs_method_with_null_argument()
/external/mockito/src/main/java/org/mockito/
DAdditionalAnswers.java294 public static <T> Answer<T> delegatesTo(Object delegate) { in delegatesTo() method in AdditionalAnswers