Searched refs:willAnswer (Results 1 – 4 of 4) sorted by relevance
58 … willAnswer(ignore()).willReturn(null).given(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()59 …willAnswer(ignore()).willReturn("a", 12).given(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()60 … willAnswer(ignore()).willReturn(1000).given(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()61 …willAnswer(ignore()).willThrow(new NullPointerException()).given(mock(IMethods.class)).objectRetur… in no_warnings_for_most_common_api()62 …willAnswer(ignore()).willThrow(new NullPointerException(), new IllegalArgumentException()).given(m… in no_warnings_for_most_common_api()63 …willAnswer(ignore()).willThrow(NullPointerException.class).given(mock(IMethods.class)).objectRetur… in no_warnings_for_most_common_api()89 …willAnswer(ignore()).willThrow(NullPointerException.class, IllegalArgumentException.class).given(m… in heap_pollution_JDK7plus_warning_avoided_BUT_now_unchecked_generic_array_creation_warnings_ON_JDK5plus_environment()100 …willAnswer(ignore()).willReturn(null, (Object[]) null).given(mock(IMethods.class)).objectReturning… in unchecked_confusing_null_argument_warnings()
20 import static org.mockito.BDDMockito.willAnswer;47 … willAnswer(byCheckingLogEquals(initialLog)).given(importLogDao).include(any(ImportLogBean.class)); in shouldIncludeInitialLog()66 … willAnswer(byCheckingLogEquals(finalLog)).given(importLogDao).alter(any(ImportLogBean.class)); in shouldAlterFinalLog()
93 BDDMyOngoingStubbing<T> willAnswer(Answer<?> answer); in willAnswer() method155 public BDDMyOngoingStubbing<T> willAnswer(Answer<?> answer) { in willAnswer() method in BDDMockito.BDDOngoingStubbingImpl330 BDDStubber willAnswer(Answer<?> answer); in willAnswer() method412 public BDDStubber willAnswer(Answer<?> answer) { in willAnswer() method in BDDMockito.BDDStubberImpl485 public static BDDStubber willAnswer(Answer<?> answer) { in willAnswer() method in BDDMockito
76 given(mock.simpleMethod(anyString())).willAnswer(new Answer<String>() { in should_stub_with_answer()199 willAnswer(new Answer<String>() { in should_stub_using_do_answer_style()