Home
last modified time | relevance | path

Searched refs:InvocationOnMock (Results 1 – 25 of 69) sorted by relevance

123

/external/mockito/src/main/java/org/mockito/internal/stubbing/answers/
DAnswerFunctionalInterfaces.java7 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 …]
DReturnsArgumentAt.java14 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()
DDoesNothing.java9 import org.mockito.invocation.InvocationOnMock;
28 public Object answer(InvocationOnMock invocation){ in answer()
33 public void validateFor(InvocationOnMock invocation) { in validateFor()
DCallsRealMethods.java9 import org.mockito.invocation.InvocationOnMock;
39 public Object answer(InvocationOnMock invocation) throws Throwable { in answer()
47 public void validateFor(InvocationOnMock invocation) { in validateFor()
DAnswersWithDelay.java7 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()
DReturns.java9 import org.mockito.invocation.InvocationOnMock;
25 public Object answer(InvocationOnMock invocation) throws Throwable { in answer()
30 public void validateFor(InvocationOnMock invocation) { in validateFor()
DThrowsException.java10 import org.mockito.invocation.InvocationOnMock;
35 public Object answer(InvocationOnMock invocation) throws Throwable { in answer()
54 public void validateFor(InvocationOnMock invocation) { in validateFor()
DDefaultAnswerValidator.java8 import org.mockito.invocation.InvocationOnMock;
13 …public static void validateReturnValueFor(InvocationOnMock invocation, Object returnedValue) throw… in validateReturnValueFor()
DReturnsElementsOf.java10 import org.mockito.invocation.InvocationOnMock;
44 public Object answer(InvocationOnMock invocation) throws Throwable { in answer()
/external/mockito/src/test/java/org/mockitousage/bugs/
DMockitoStubbedCallInAnswerTest.java9 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()
DClassCastExOnVerifyZeroInteractionsTest.java10 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/
DReturnsSmartNulls.java15 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()
DReturnsDeepStubs.java15 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()
DGloballyConfiguredAnswer.java11 import org.mockito.invocation.InvocationOnMock;
23 public Object answer(InvocationOnMock invocation) throws Throwable { in answer()
DTriesToReturnSelf.java8 import org.mockito.invocation.InvocationOnMock;
17 public Object answer(InvocationOnMock invocation) throws Throwable { in answer()
DReturnsMocks.java9 import org.mockito.invocation.InvocationOnMock;
20 public Object answer(InvocationOnMock invocation) throws Throwable { in answer()
DReturnsMoreEmptyValues.java11 import org.mockito.invocation.InvocationOnMock;
55 public Object answer(InvocationOnMock invocation) throws Throwable { in answer()
/external/mockito/src/test/java/org/mockitousage/stubbing/
DStubbingWithCustomAnswerTest.java9 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/
DAnswer.java7 import org.mockito.invocation.InvocationOnMock;
39 T answer(InvocationOnMock invocation) throws Throwable; in answer()
DValidableAnswer.java9 import org.mockito.invocation.InvocationOnMock;
91 void validateFor(InvocationOnMock invocation); in validateFor()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DTestUtils.java32 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()
DChannelExecutorTest.java38 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/
DClassPathLoaderTest.java8 import org.mockito.invocation.InvocationOnMock;
21 public Object answer(InvocationOnMock invocation) { in shouldReadConfigurationClassFromClassPath()
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/
DWriteQueueTest.java44 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/
DHttpStackConformanceTest.java32 import org.mockito.invocation.InvocationOnMock;
63 public Void answer(InvocationOnMock invocation) {
76 InvocationOnMock invocation) {
106 public Void answer(InvocationOnMock invocation)

123