Home
last modified time | relevance | path

Searched refs:willAnswer (Results 1 – 4 of 4) sorted by relevance

/external/mockito/src/test/java/org/mockitousage/
DCompilationWarningsTest.java54willAnswer(ignore()).willReturn(null).given(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
55willAnswer(ignore()).willReturn("a", 12).given(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
56willAnswer(ignore()).willReturn(1000).given(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
57willAnswer(ignore()).willThrow(new NullPointerException()).given(mock(IMethods.class)).objectRetur… in no_warnings_for_most_common_api()
58willAnswer(ignore()).willThrow(new NullPointerException(), new IllegalArgumentException()).given(m… in no_warnings_for_most_common_api()
59willAnswer(ignore()).willThrow(NullPointerException.class).given(mock(IMethods.class)).objectRetur… in no_warnings_for_most_common_api()
85willAnswer(ignore()).willThrow(NullPointerException.class, IllegalArgumentException.class).given(m… in heap_pollution_JDK7plus_warning_avoided_BUT_now_unchecked_generic_array_creation_warnings_ON_JDK5plus_environment()
96willAnswer(ignore()).willReturn(null, (Object[]) null).given(mock(IMethods.class)).objectReturning… in unchecked_confusing_null_argument_warnings()
DPlaygroundWithDemoOfUnclonedParametersProblemTest.java20 import static org.mockito.BDDMockito.willAnswer;
47willAnswer(byCheckingLogEquals(initialLog)).given(importLogDao).include(any(ImportLogBean.class)); in shouldIncludeInitialLog()
66willAnswer(byCheckingLogEquals(finalLog)).given(importLogDao).alter(any(ImportLogBean.class)); in shouldAlterFinalLog()
/external/mockito/src/main/java/org/mockito/
DBDDMockito.java93 BDDMyOngoingStubbing<T> willAnswer(Answer<?> answer); in willAnswer() method
155 public BDDMyOngoingStubbing<T> willAnswer(Answer<?> answer) { in willAnswer() method in BDDMockito.BDDOngoingStubbingImpl
330 BDDStubber willAnswer(Answer<?> answer); in willAnswer() method
412 public BDDStubber willAnswer(Answer<?> answer) { in willAnswer() method in BDDMockito.BDDStubberImpl
485 public static BDDStubber willAnswer(Answer<?> answer) { in willAnswer() method in BDDMockito
/external/mockito/src/test/java/org/mockitousage/customization/
DBDDMockitoTest.java76 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()