Searched refs:AdditionalAnswers (Results 1 – 20 of 20) sorted by relevance
9 import org.mockito.AdditionalAnswers;30 … when(mock.objectReturningMethodNoArgs()).thenAnswer(AdditionalAnswers.returnsElementsOf(list)); in shouldWorkAsStandardMockito()45 … when(mock.objectReturningMethodNoArgs()).thenAnswer(AdditionalAnswers.returnsElementsOf(list)); in shouldReturnNullIfNecessary()57 AdditionalAnswers.returnsElementsOf(null); in shouldScreamWhenNullPassed()
9 import static org.mockito.AdditionalAnswers.answer;10 import static org.mockito.AdditionalAnswers.answerVoid;11 import static org.mockito.AdditionalAnswers.returnsArgAt;12 import static org.mockito.AdditionalAnswers.returnsFirstArg;13 import static org.mockito.AdditionalAnswers.returnsLastArg;14 import static org.mockito.AdditionalAnswers.returnsSecondArg;15 import static org.mockito.AdditionalAnswers.answersWithDelay;
10 import static org.mockito.AdditionalAnswers.delegatesTo;
20 import static org.mockito.AdditionalAnswers.delegatesTo;
12 import org.mockito.AdditionalAnswers;206 lenient().doAnswer(AdditionalAnswers.returnsFirstArg()).when(mock).simpleMethod("1"); in doAnswer_syntax()
20 import org.mockito.AdditionalAnswers.delegatesTo
21 import static org.mockito.AdditionalAnswers.delegatesTo;
40 public class AdditionalAnswers { class
27 import static org.mockito.AdditionalAnswers.delegatesTo;
30 import static org.mockito.AdditionalAnswers.delegatesTo;
29 import static org.mockito.AdditionalAnswers.delegatesTo;
22 import static org.mockito.AdditionalAnswers.delegatesTo;
23 import static org.mockito.AdditionalAnswers.delegatesTo;
26 import static org.mockito.AdditionalAnswers.delegatesTo;
38 import static org.mockito.AdditionalAnswers.delegatesTo;
32 import static org.mockito.AdditionalAnswers.delegatesTo;