Home | History | Annotate | Download | only in test

Lines Matching defs:answer

20 import org.mockito.stubbing.Answer;
32 * Answer that calls the method in the Answer called "answer" that matches the type signature of
36 public static class AnswerWithArguments implements Answer<Object> {
38 public final Object answer(InvocationOnMock invocation) throws Throwable {
41 Method implementation = getClass().getMethod("answer", method.getParameterTypes());
43 throw new RuntimeException("Found answer method does not have expected return "
51 throw new RuntimeException("Error invoking answer method", e);
56 throw new RuntimeException("Could not find answer method with the expected args "