Home
last modified time | relevance | path

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

12

/external/mockito/src/main/java/org/mockito/internal/stubbing/answers/
DReturnsArgumentAt.java11 import org.mockito.invocation.InvocationOnMock;
46 public Object answer(InvocationOnMock invocation) throws Throwable { in answer()
60 public void validateFor(InvocationOnMock invocation) { in validateFor()
66 private int inferWantedArgumentPosition(InvocationOnMock invocation) { in inferWantedArgumentPosition()
72 …private void validateIndexWithinInvocationRange(InvocationOnMock invocation, int argumentPosition)… in validateIndexWithinInvocationRange()
80 …private void validateArgumentTypeCompatibility(InvocationOnMock invocation, int argumentPosition) { in validateArgumentTypeCompatibility()
98 …private boolean wantedArgumentPositionIsValidForInvocation(InvocationOnMock invocation, int argume… in wantedArgumentPositionIsValidForInvocation()
109 private Class<?> inferWantedArgumentType(InvocationOnMock invocation, int argumentPosition) { in inferWantedArgumentType()
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 …]
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()
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;
27 public Object answer(InvocationOnMock invocation) throws Throwable { in answer()
41 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()
DThrowsExceptionClass.java9 import org.mockito.invocation.InvocationOnMock;
33 public Object answer(InvocationOnMock invocation) throws Throwable { in answer()
DClonesArguments.java11 import org.mockito.invocation.InvocationOnMock;
17 public Object answer(InvocationOnMock invocation) throws Throwable { in answer()
DInvocationInfo.java11 import org.mockito.invocation.InvocationOnMock;
17 public InvocationInfo(InvocationOnMock theInvocation) { in InvocationInfo()
/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.java16 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/test/java/org/mockitousage/bugs/
DClassCastExOnVerifyZeroInteractionsTest.java6 import org.mockito.invocation.InvocationOnMock;
20 public Object answer(InvocationOnMock invocation) throws Throwable { in should_not_throw_ClassCastException_when_mock_verification_fails()
31 public Object answer(InvocationOnMock invocation) throws Throwable { in should_report_bogus_default_answer()
/external/mockito/src/main/java/org/mockito/stubbing/
DAnswer.java7 import org.mockito.invocation.InvocationOnMock;
38 T answer(InvocationOnMock invocation) throws Throwable; in answer()
DValidableAnswer.java9 import org.mockito.invocation.InvocationOnMock;
91 void validateFor(InvocationOnMock invocation); in validateFor()
/external/mockito/src/test/java/org/mockito/internal/configuration/
DClassPathLoaderTest.java4 import org.mockito.invocation.InvocationOnMock;
17 public Object answer(InvocationOnMock invocation) { in shouldReadConfigurationClassFromClassPath()
/external/volley/src/test/java/com/android/volley/
DRequestQueueIntegrationTest.java29 import org.mockito.invocation.InvocationOnMock;
75 public NetworkResponse answer(InvocationOnMock invocationOnMock) throws Throwable { in add_requestProcessedInCorrectOrder()
113 public NetworkResponse answer(InvocationOnMock invocationOnMock) throws Throwable { in add_dedupeByCacheKey()
146 public NetworkResponse answer(InvocationOnMock invocationOnMock) throws Throwable { in add_requestFinishedListenerCanceled()
/external/mockito/src/main/java/org/mockito/
DAnswers.java13 import org.mockito.invocation.InvocationOnMock;
99 public Object answer(InvocationOnMock invocation) throws Throwable { in answer()
/external/mockito/src/main/java/org/mockito/internal/stubbing/
DStubbedInvocationMatcher.java10 import org.mockito.invocation.InvocationOnMock;
29 public Object answer(InvocationOnMock invocation) throws Throwable { in answer()

12