Package | Description |
---|---|
org.mockito |
Mockito is a mock library for java - see
Mockito 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.invocation |
Public API related to mock method invocations.
|
org.mockito.stubbing |
Stubbing related classes.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
Answers.answer(InvocationOnMock invocation) |
Modifier and Type | Method and 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) |
Modifier and Type | Class and Description |
---|---|
class |
InterceptedInvocation |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
StubbedInvocationMatcher.answer(InvocationOnMock invocation) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
ReturnsElementsOf.answer(InvocationOnMock invocation) |
java.lang.Object |
DoesNothing.answer(InvocationOnMock invocation) |
java.lang.Object |
CallsRealMethods.answer(InvocationOnMock invocation) |
java.lang.Object |
ClonesArguments.answer(InvocationOnMock invocation) |
java.lang.Object |
AnswersWithDelay.answer(InvocationOnMock invocation) |
java.lang.Object |
ThrowsException.answer(InvocationOnMock invocation) |
java.lang.Object |
ReturnsArgumentAt.answer(InvocationOnMock invocation) |
java.lang.Object |
Returns.answer(InvocationOnMock invocation) |
private int |
ReturnsArgumentAt.inferWantedArgumentPosition(InvocationOnMock invocation) |
void |
DoesNothing.validateFor(InvocationOnMock invocation) |
void |
CallsRealMethods.validateFor(InvocationOnMock invocation) |
void |
AnswersWithDelay.validateFor(InvocationOnMock invocation) |
void |
ThrowsException.validateFor(InvocationOnMock invocation) |
void |
ReturnsArgumentAt.validateFor(InvocationOnMock invocation) |
void |
Returns.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) |
Constructor and Description |
---|
InvocationInfo(InvocationOnMock theInvocation) |
Modifier and Type | Field and Description |
---|---|
private InvocationOnMock |
ReturnsSmartNulls.ThrowsSmartNullPointer.unstubbedInvocation |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
ReturnsDeepStubs.answer(InvocationOnMock invocation) |
java.lang.Object |
ReturnsDeepStubs.DeeplyStubbedAnswer.answer(InvocationOnMock invocation) |
java.lang.Object |
ReturnsMoreEmptyValues.answer(InvocationOnMock invocation) |
java.lang.Object |
GloballyConfiguredAnswer.answer(InvocationOnMock invocation) |
java.lang.Object |
TriesToReturnSelf.answer(InvocationOnMock invocation) |
java.lang.Object |
ReturnsMocks.answer(InvocationOnMock invocation) |
java.lang.Object |
ReturnsEmptyValues.answer(InvocationOnMock invocation) |
java.lang.Object |
ReturnsSmartNulls.answer(InvocationOnMock invocation) |
java.lang.Object |
ReturnsSmartNulls.ThrowsSmartNullPointer.answer(InvocationOnMock currentInvocation) |
java.lang.Object |
ForwardsInvocations.answer(InvocationOnMock invocation) |
private java.lang.Object |
ReturnsDeepStubs.deepStub(InvocationOnMock invocation,
GenericMetadataSupport returnTypeGenericMetadata) |
Constructor and Description |
---|
ThrowsSmartNullPointer(InvocationOnMock unstubbedInvocation,
Location location) |
Modifier and Type | Interface and Description |
---|---|
interface |
Invocation
A method call on a mock object.
|
Modifier and Type | Method and Description |
---|---|
T |
Answer.answer(InvocationOnMock invocation) |
void |
ValidableAnswer.validateFor(InvocationOnMock invocation)
Validation of the answer at stub time for the given invocation.
|