Package | Description |
---|---|
org.mockito |
Mockito is a mock library for java - see Mockito class for for usage.
|
org.mockito.exceptions |
Exception messages, exception hierarchies.
|
org.mockito.internal.invocation |
Invocation 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 ReturnValues
|
org.mockito.invocation |
Public API related to invocation
|
org.mockito.stubbing |
External stubbing related classes
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
ReturnValues.valueFor(InvocationOnMock invocation) |
Deprecated.
return value for an unstubbed invocation
|
Modifier and Type | Method | Description |
---|---|---|
int |
Reporter.invalidArgumentPositionRangeAtInvocationTime(InvocationOnMock invocation,
boolean willReturnLastParameter,
int argumentIndex) |
|
void |
Reporter.wrongTypeOfArgumentToReturn(InvocationOnMock invocation,
java.lang.String expectedType,
java.lang.Class actualType,
int argumentIndex) |
Modifier and Type | Class | Description |
---|---|---|
class |
InvocationImpl |
Method call on a mock object.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
StubbedInvocationMatcher.answer(InvocationOnMock invocation) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
AnswerReturnValuesAdapter.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) |
|
java.lang.Object |
ThrowsException.answer(InvocationOnMock invocation) |
|
java.lang.Object |
ThrowsExceptionClass.answer(InvocationOnMock invocation) |
|
java.lang.Class |
ReturnsArgumentAt.returnedTypeOnSignature(InvocationOnMock invocation) |
|
void |
ReturnsArgumentAt.validateIndexWithinInvocationRange(InvocationOnMock invocation) |
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 |
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) |
Modifier and Type | Interface | Description |
---|---|---|
interface |
Invocation |
A method call on a mock object.
|
Modifier and Type | Method | Description |
---|---|---|
T |
Answer.answer(InvocationOnMock invocation) |