Searched refs:doAnswer (Results 1 – 9 of 9) sorted by relevance
75 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()
30 doAnswer(ignore()).doReturn(null).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()31 … doAnswer(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()33 …doAnswer(ignore()).doThrow(new NullPointerException()).when(mock(IMethods.class)).objectReturningM… in no_warnings_for_most_common_api()34 …doAnswer(ignore()).doThrow(new NullPointerException(), new IllegalArgumentException()).when(mock(I… in no_warnings_for_most_common_api()35 …doAnswer(ignore()).doThrow(NullPointerException.class).when(mock(IMethods.class)).objectReturningM… in no_warnings_for_most_common_api()85 …doAnswer(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()95 …doAnswer(ignore()).doReturn(null, (Object[]) null).when(mock(IMethods.class)).objectReturningMetho… in unchecked_confusing_null_argument_warnings()
72 doAnswer(recordCall).when(mock).voidMethod(); in shouldAnswerVoidMethod()83 doAnswer(call1) in shouldAnswerVoidMethodConsecutively()85 .doAnswer(call2) in shouldAnswerVoidMethodConsecutively()
194 doAnswer(new Answer<Object>() { in should_stub_with_generic_answer()
413 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()
2344 public static Stubber doAnswer(Answer answer) { in doAnswer() method in Mockito2345 return MOCKITO_CORE.stubber().doAnswer(answer); in doAnswer()
6 import static org.mockito.Mockito.doAnswer;39 doAnswer(new Answer() { in setUp()
135 Stubber doAnswer(Answer answer); in doAnswer() method
116 public Stubber doAnswer(Answer answer) { in doAnswer() method in StubberImpl