Uses of Interface
org.mockito.invocation.InvocationOnMock
-
Packages that use InvocationOnMock Package Description org.mockito Mockito is a mock library for java - seeMockito
class for usage.org.mockito.internal.exceptions org.mockito.internal.invocation Invocation machinery and related classes.org.mockito.internal.stubbing Stubbing logic.org.mockito.internal.stubbing.answers Answers for stubbed calls.org.mockito.internal.stubbing.defaultanswers Implementations of default Answers.org.mockito.internal.util Static utilsorg.mockito.invocation Public API related to mock method invocations.org.mockito.stubbing Stubbing related classes. -
-
Uses of InvocationOnMock in org.mockito
Methods in org.mockito with parameters of type InvocationOnMock Modifier and Type Method Description java.lang.Object
Answers. answer(InvocationOnMock invocation)
-
Uses of InvocationOnMock in org.mockito.internal.exceptions
Methods in org.mockito.internal.exceptions with parameters of type InvocationOnMock Modifier and Type Method Description static MockitoException
Reporter. invalidArgumentPositionRangeAtInvocationTime(InvocationOnMock invocation, boolean willReturnLastParameter, int argumentIndex)
private static java.lang.StringBuilder
Reporter. possibleArgumentTypesOf(InvocationOnMock invocation)
static MockitoException
Reporter. wrongTypeOfArgumentToReturn(InvocationOnMock invocation, java.lang.String expectedType, java.lang.Class<?> actualType, int argumentIndex)
-
Uses of InvocationOnMock in org.mockito.internal.invocation
Classes in org.mockito.internal.invocation that implement InvocationOnMock Modifier and Type Class Description class
InterceptedInvocation
-
Uses of InvocationOnMock in org.mockito.internal.stubbing
Methods in org.mockito.internal.stubbing with parameters of type InvocationOnMock Modifier and Type Method Description java.lang.Object
StubbedInvocationMatcher. answer(InvocationOnMock invocation)
-
Uses of InvocationOnMock in org.mockito.internal.stubbing.answers
Fields in org.mockito.internal.stubbing.answers declared as InvocationOnMock Modifier and Type Field Description private InvocationOnMock
InvocationInfo. invocation
Methods in org.mockito.internal.stubbing.answers with parameters of type InvocationOnMock Modifier and Type Method Description java.lang.Object
AbstractThrowsException. answer(InvocationOnMock invocation)
java.lang.Object
AnswersWithDelay. answer(InvocationOnMock invocation)
java.lang.Object
CallsRealMethods. answer(InvocationOnMock invocation)
java.lang.Object
ClonesArguments. answer(InvocationOnMock invocation)
java.lang.Object
DoesNothing. answer(InvocationOnMock invocation)
java.lang.Object
Returns. answer(InvocationOnMock invocation)
java.lang.Object
ReturnsArgumentAt. answer(InvocationOnMock invocation)
java.lang.Object
ReturnsElementsOf. answer(InvocationOnMock invocation)
private int
ReturnsArgumentAt. inferWantedArgumentPosition(InvocationOnMock invocation)
void
AbstractThrowsException. validateFor(InvocationOnMock invocation)
void
AnswersWithDelay. validateFor(InvocationOnMock invocation)
void
CallsRealMethods. validateFor(InvocationOnMock invocation)
void
DoesNothing. validateFor(InvocationOnMock invocation)
void
Returns. validateFor(InvocationOnMock invocation)
void
ReturnsArgumentAt. validateFor(InvocationOnMock invocation)
private void
ReturnsArgumentAt. validateIndexWithinInvocationRange(InvocationOnMock invocation, int argumentPosition)
static void
DefaultAnswerValidator. validateReturnValueFor(InvocationOnMock invocation, java.lang.Object returnedValue)
private boolean
ReturnsArgumentAt. wantedArgumentPositionIsValidForInvocation(InvocationOnMock invocation, int argumentPosition)
Constructors in org.mockito.internal.stubbing.answers with parameters of type InvocationOnMock Constructor Description InvocationInfo(InvocationOnMock theInvocation)
-
Uses of InvocationOnMock in org.mockito.internal.stubbing.defaultanswers
Fields in org.mockito.internal.stubbing.defaultanswers declared as InvocationOnMock Modifier and Type Field Description private InvocationOnMock
ReturnsSmartNulls.ThrowsSmartNullPointer. unstubbedInvocation
Methods in org.mockito.internal.stubbing.defaultanswers with parameters of type InvocationOnMock Modifier and Type Method Description java.lang.Object
ForwardsInvocations. answer(InvocationOnMock invocation)
java.lang.Object
GloballyConfiguredAnswer. answer(InvocationOnMock invocation)
java.lang.Object
ReturnsDeepStubs. answer(InvocationOnMock invocation)
java.lang.Object
ReturnsDeepStubs.DeeplyStubbedAnswer. answer(InvocationOnMock invocation)
java.lang.Object
ReturnsEmptyValues. answer(InvocationOnMock invocation)
java.lang.Object
ReturnsMocks. answer(InvocationOnMock invocation)
java.lang.Object
ReturnsMoreEmptyValues. answer(InvocationOnMock invocation)
java.lang.Object
ReturnsSmartNulls. answer(InvocationOnMock invocation)
java.lang.Object
ReturnsSmartNulls.ThrowsSmartNullPointer. answer(InvocationOnMock currentInvocation)
java.lang.Object
TriesToReturnSelf. answer(InvocationOnMock invocation)
private java.lang.Object
ReturnsDeepStubs. deepStub(InvocationOnMock invocation, GenericMetadataSupport returnTypeGenericMetadata)
private static java.lang.Class<?>
RetrieveGenericsForDefaultAnswers. findTypeFromGeneric(InvocationOnMock invocation, java.lang.reflect.TypeVariable returnType)
Retrieve the expected type when it came from a primitive.private static java.lang.Class<?>
RetrieveGenericsForDefaultAnswers. findTypeFromGenericInArguments(InvocationOnMock invocation, java.lang.reflect.TypeVariable returnType)
Find a return type using generic arguments provided by the calling method.(package private) static java.lang.Object
RetrieveGenericsForDefaultAnswers. returnTypeForMockWithCorrectGenerics(InvocationOnMock invocation, RetrieveGenericsForDefaultAnswers.AnswerCallback answerCallback)
Constructors in org.mockito.internal.stubbing.defaultanswers with parameters of type InvocationOnMock Constructor Description ThrowsSmartNullPointer(InvocationOnMock unstubbedInvocation, Location location)
-
Uses of InvocationOnMock in org.mockito.internal.util
Methods in org.mockito.internal.util with parameters of type InvocationOnMock Modifier and Type Method Description static java.lang.Object
KotlinInlineClassUtil. unboxUnderlyingValueIfNeeded(InvocationOnMock invocation, java.lang.Object value)
-
Uses of InvocationOnMock in org.mockito.invocation
Subinterfaces of InvocationOnMock in org.mockito.invocation Modifier and Type Interface Description interface
Invocation
A method call on a mock object. -
Uses of InvocationOnMock in org.mockito.stubbing
Methods in org.mockito.stubbing with parameters of type InvocationOnMock Modifier and Type Method Description T
Answer. answer(InvocationOnMock invocation)
void
ValidableAnswer. validateFor(InvocationOnMock invocation)
Validation of the answer at stub time for the given invocation.
-