AdditionalAnswers.java | 11 import org.mockito.stubbing.Answer; 30 * that either return a value or are void (see answer interfaces in {@link org.mockito.stubbing}). 33 * {@link #returnsLastArg}, {@link #returnsArgAt}, {@link #answer} and {@link #answerVoid} 43 * This additional answer could be used at stub time using the 44 * <code>then|do|will{@link org.mockito.stubbing.Answer}</code> methods. For example : 79 * @return Answer that will return the first argument of the invocation. 83 public static <T> Answer<T> returnsFirstArg() { 84 return (Answer<T>) new ReturnsArgumentAt(0); 91 * This additional answer could be used at stub time using the 92 * <code>then|do|will{@link org.mockito.stubbing.Answer}</code> methods. For example 329 public static <T, A> Answer<T> answer(Answer1<T, A> answer) { method in class:AdditionalAnswers 357 public static <T, A, B> Answer<T> answer(Answer2<T, A, B> answer) { method in class:AdditionalAnswers 387 public static <T, A, B, C> Answer<T> answer(Answer3<T, A, B, C> answer) { method in class:AdditionalAnswers 419 public static <T, A, B, C, D> Answer<T> answer(Answer4<T, A, B, C, D> answer) { method in class:AdditionalAnswers 453 public static <T, A, B, C, D, E> Answer<T> answer(Answer5<T, A, B, C, D, E> answer) { method in class:AdditionalAnswers [all...] |