/external/mockito/src/main/java/org/mockito/internal/stubbing/answers/ |
D | AnswerFunctionalInterfaces.java | 7 import org.mockito.invocation.InvocationOnMock; 42 public T answer(InvocationOnMock invocation) throws Throwable { in toAnswer() 57 public Void answer(InvocationOnMock invocation) throws Throwable { 75 public T answer(InvocationOnMock invocation) throws Throwable { 93 public Void answer(InvocationOnMock invocation) throws Throwable { 114 public T answer(InvocationOnMock invocation) throws Throwable { 134 public Void answer(InvocationOnMock invocation) throws Throwable { 157 public T answer(InvocationOnMock invocation) throws Throwable { 179 public Void answer(InvocationOnMock invocation) throws Throwable { 204 public T answer(InvocationOnMock invocation) throws Throwable { [all …]
|
D | ReturnsArgumentAt.java | 14 import org.mockito.invocation.InvocationOnMock; 53 public Object answer(InvocationOnMock invocation) throws Throwable { in answer() 68 public void validateFor(InvocationOnMock invocation) { in validateFor() 74 private int inferWantedArgumentPosition(InvocationOnMock invocation) { in inferWantedArgumentPosition() 81 …private void validateIndexWithinInvocationRange(InvocationOnMock invocation, int argumentPosition)… in validateIndexWithinInvocationRange() 109 …private boolean wantedArgumentPositionIsValidForInvocation(InvocationOnMock invocation, int argume… in wantedArgumentPositionIsValidForInvocation()
|
D | DoesNothing.java | 9 import org.mockito.invocation.InvocationOnMock; 28 public Object answer(InvocationOnMock invocation){ in answer() 33 public void validateFor(InvocationOnMock invocation) { in validateFor()
|
D | CallsRealMethods.java | 9 import org.mockito.invocation.InvocationOnMock; 39 public Object answer(InvocationOnMock invocation) throws Throwable { in answer() 47 public void validateFor(InvocationOnMock invocation) { in validateFor()
|
D | AnswersWithDelay.java | 7 import org.mockito.invocation.InvocationOnMock; 35 public Object answer(final InvocationOnMock invocation) throws Throwable { in answer() 41 public void validateFor(final InvocationOnMock invocation) { in validateFor()
|
D | Returns.java | 9 import org.mockito.invocation.InvocationOnMock; 25 public Object answer(InvocationOnMock invocation) throws Throwable { in answer() 30 public void validateFor(InvocationOnMock invocation) { in validateFor()
|
D | ThrowsException.java | 10 import org.mockito.invocation.InvocationOnMock; 35 public Object answer(InvocationOnMock invocation) throws Throwable { in answer() 54 public void validateFor(InvocationOnMock invocation) { in validateFor()
|
D | DefaultAnswerValidator.java | 8 import org.mockito.invocation.InvocationOnMock; 13 …public static void validateReturnValueFor(InvocationOnMock invocation, Object returnedValue) throw… in validateReturnValueFor()
|
D | ReturnsElementsOf.java | 10 import org.mockito.invocation.InvocationOnMock; 44 public Object answer(InvocationOnMock invocation) throws Throwable { in answer()
|
/external/mockito/src/test/java/org/mockitousage/bugs/ |
D | MockitoStubbedCallInAnswerTest.java | 9 import org.mockito.invocation.InvocationOnMock; 30 public Integer answer(InvocationOnMock invocation) throws Throwable { in stubbing_the_right_mock() 50 public String answer(InvocationOnMock invocation) throws Throwable { in return_type_validation() 65 public Integer answer(InvocationOnMock invocation) throws Throwable { in prevents_stack_overflow() 72 public Integer answer(InvocationOnMock invocation) throws Throwable { in prevents_stack_overflow() 85 public Integer answer(InvocationOnMock invocation) throws Throwable { in overriding_stubbing()
|
D | ClassCastExOnVerifyZeroInteractionsTest.java | 10 import org.mockito.invocation.InvocationOnMock; 24 public Object answer(InvocationOnMock invocation) throws Throwable { in should_not_throw_ClassCastException_when_mock_verification_fails() 35 public Object answer(InvocationOnMock invocation) throws Throwable { in should_report_bogus_default_answer()
|
/external/mockito/src/main/java/org/mockito/internal/stubbing/defaultanswers/ |
D | ReturnsSmartNulls.java | 15 import org.mockito.invocation.InvocationOnMock; 43 public Object answer(final InvocationOnMock invocation) throws Throwable { in answer() 57 private final InvocationOnMock unstubbedInvocation; 60 public ThrowsSmartNullPointer(InvocationOnMock unstubbedInvocation, Location location) { in ThrowsSmartNullPointer() 65 public Object answer(InvocationOnMock currentInvocation) throws Throwable { in answer()
|
D | ReturnsDeepStubs.java | 15 import org.mockito.invocation.InvocationOnMock; 47 public Object answer(InvocationOnMock invocation) throws Throwable { in answer() 59 …private Object deepStub(InvocationOnMock invocation, GenericMetadataSupport returnTypeGenericMetad… in deepStub() 155 public Object answer(InvocationOnMock invocation) throws Throwable { in answer()
|
D | GloballyConfiguredAnswer.java | 11 import org.mockito.invocation.InvocationOnMock; 23 public Object answer(InvocationOnMock invocation) throws Throwable { in answer()
|
D | TriesToReturnSelf.java | 8 import org.mockito.invocation.InvocationOnMock; 17 public Object answer(InvocationOnMock invocation) throws Throwable { in answer()
|
D | ReturnsMocks.java | 9 import org.mockito.invocation.InvocationOnMock; 20 public Object answer(InvocationOnMock invocation) throws Throwable { in answer()
|
D | ReturnsMoreEmptyValues.java | 11 import org.mockito.invocation.InvocationOnMock; 55 public Object answer(InvocationOnMock invocation) throws Throwable { in answer()
|
/external/mockito/src/test/java/org/mockitousage/stubbing/ |
D | StubbingWithCustomAnswerTest.java | 9 import org.mockito.invocation.InvocationOnMock; 27 public String answer(InvocationOnMock invocation) throws Throwable { in shouldAnswer() 51 public String answer(InvocationOnMock invocation) throws Throwable { in shouldAnswerConsecutively() 57 public String answer(InvocationOnMock invocation) throws Throwable { in shouldAnswerConsecutively() 105 public String answer(InvocationOnMock invocation) throws Throwable { in shouldMakeSureTheInterfaceDoesNotChange() 123 public Object answer(InvocationOnMock invocation) throws Throwable { in answer()
|
/external/mockito/src/main/java/org/mockito/stubbing/ |
D | Answer.java | 7 import org.mockito.invocation.InvocationOnMock; 39 T answer(InvocationOnMock invocation) throws Throwable; in answer()
|
D | ValidableAnswer.java | 9 import org.mockito.invocation.InvocationOnMock; 91 void validateFor(InvocationOnMock invocation); in validateFor()
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | TestUtils.java | 32 import org.mockito.invocation.InvocationOnMock; 76 public ConnectionClientTransport answer(InvocationOnMock invocation) throws Throwable { in captureTransports() 85 public Runnable answer(InvocationOnMock invocation) throws Throwable { in captureTransports()
|
D | ChannelExecutorTest.java | 38 import org.mockito.invocation.InvocationOnMock; 100 public Void answer(InvocationOnMock invocation) { in multiThread() 114 public Void answer(InvocationOnMock invocation) { in multiThread() 155 public Void answer(InvocationOnMock invocation) { in taskThrows()
|
/external/mockito/src/test/java/org/mockito/internal/configuration/ |
D | ClassPathLoaderTest.java | 8 import org.mockito.invocation.InvocationOnMock; 21 public Object answer(InvocationOnMock invocation) { in shouldReadConfigurationClassFromClassPath()
|
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/ |
D | WriteQueueTest.java | 44 import org.mockito.invocation.InvocationOnMock; 75 public Void answer(InvocationOnMock invocation) throws Throwable { in setUp() 86 public Channel answer(InvocationOnMock invocation) throws Throwable { in setUp() 100 public ChannelFuture answer(InvocationOnMock invocation) throws Throwable { in setUp()
|
/external/volley/src/test/java/com/android/volley/toolbox/ |
D | HttpStackConformanceTest.java | 32 import org.mockito.invocation.InvocationOnMock; 63 public Void answer(InvocationOnMock invocation) { 76 InvocationOnMock invocation) { 106 public Void answer(InvocationOnMock invocation)
|