Lines Matching refs:answer
10 import org.mockito.stubbing.Answer;
26 when(mock.simpleMethod(anyString())).thenAnswer(new Answer<String>() {
27 public String answer(InvocationOnMock invocation) throws Throwable {
50 .thenAnswer(new Answer<String>() {
51 public String answer(InvocationOnMock invocation) throws Throwable {
56 .thenAnswer(new Answer<String>() {
57 public String answer(InvocationOnMock invocation) throws Throwable {
104 when(mock.simpleMethod(anyString())).thenAnswer(new Answer<String>() {
105 public String answer(InvocationOnMock invocation) throws Throwable {
116 private static class RecordCall implements Answer<Object> {
123 public Object answer(InvocationOnMock invocation) throws Throwable {