Home
last modified time | relevance | path

Searched refs:doAnswer (Results 1 – 9 of 9) sorted by relevance

/external/mockito/src/test/java/org/mockito/internal/
DInvalidStateDetectionTest.java75 doAnswer(null); in shouldDetectUnfinishedDoAnswerStubbing()
78 doAnswer(null); in shouldDetectUnfinishedDoAnswerStubbing()
81 doAnswer(null); in shouldDetectUnfinishedDoAnswerStubbing()
84 doAnswer(null); in shouldDetectUnfinishedDoAnswerStubbing()
87 doAnswer(null); in shouldDetectUnfinishedDoAnswerStubbing()
90 doAnswer(null); in shouldDetectUnfinishedDoAnswerStubbing()
93 doAnswer(null); in shouldDetectUnfinishedDoAnswerStubbing()
195 doAnswer(null); in detect()
/external/mockito/src/test/java/org/mockitousage/
DCompilationWarningsTest.java30 doAnswer(ignore()).doReturn(null).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
31doAnswer(ignore()).doReturn("a", 12).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
32 doAnswer(ignore()).doReturn(1000).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
33doAnswer(ignore()).doThrow(new NullPointerException()).when(mock(IMethods.class)).objectReturningM… in no_warnings_for_most_common_api()
34doAnswer(ignore()).doThrow(new NullPointerException(), new IllegalArgumentException()).when(mock(I… in no_warnings_for_most_common_api()
35doAnswer(ignore()).doThrow(NullPointerException.class).when(mock(IMethods.class)).objectReturningM… in no_warnings_for_most_common_api()
85doAnswer(ignore()).doThrow(NullPointerException.class, IllegalArgumentException.class).when(mock(I… in heap_pollution_JDK7plus_warning_avoided_BUT_now_unchecked_generic_array_creation_warnings_ON_JDK5plus_environment()
95doAnswer(ignore()).doReturn(null, (Object[]) null).when(mock(IMethods.class)).objectReturningMetho… in unchecked_confusing_null_argument_warnings()
/external/mockito/src/test/java/org/mockitousage/stubbing/
DStubbingWithCustomAnswerTest.java72 doAnswer(recordCall).when(mock).voidMethod(); in shouldAnswerVoidMethod()
83 doAnswer(call1) in shouldAnswerVoidMethodConsecutively()
85 .doAnswer(call2) in shouldAnswerVoidMethodConsecutively()
DStubbingUsingDoReturnTest.java194 doAnswer(new Answer<Object>() { in should_stub_with_generic_answer()
/external/mockito/src/main/java/org/mockito/
DBDDMockito.java413 return new BDDStubberImpl(mockitoStubber.doAnswer(answer)); in willAnswer()
417 return new BDDStubberImpl(mockitoStubber.doAnswer(answer)); in will()
486 return new BDDStubberImpl(Mockito.doAnswer(answer)); in willAnswer()
494 return new BDDStubberImpl(Mockito.doAnswer(answer)); in will()
DMockito.java2344 public static Stubber doAnswer(Answer answer) { in doAnswer() method in Mockito
2345 return MOCKITO_CORE.stubber().doAnswer(answer); in doAnswer()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/internal/dependency/
DMavenDependencyResolverTest.java6 import static org.mockito.Mockito.doAnswer;
39 doAnswer(new Answer() { in setUp()
/external/mockito/src/main/java/org/mockito/stubbing/
DStubber.java135 Stubber doAnswer(Answer answer); in doAnswer() method
/external/mockito/src/main/java/org/mockito/internal/stubbing/
DStubberImpl.java116 public Stubber doAnswer(Answer answer) { in doAnswer() method in StubberImpl