Package | Description |
---|---|
org.mockito |
Mockito is a mock library for java - see
Mockito class for usage. |
org.mockito.configuration |
Mockito configuration utilities.
|
org.mockito.listeners |
Public classes relative to the listener APIs.
|
org.mockito.mock |
Mock settings related classes.
|
org.mockito.stubbing |
Stubbing related classes.
|
Class and Description |
---|
Answer
Generic interface to be used for configuring mock's answer.
|
Answer1
Generic interface to be used for configuring mock's answer for a single argument invocation.
|
Answer2
Generic interface to be used for configuring mock's answer for a two argument invocation.
|
Answer3
Generic interface to be used for configuring mock's answer for a three argument invocation.
|
Answer4
Generic interface to be used for configuring mock's answer for a four argument invocation.
|
Answer5
Generic interface to be used for configuring mock's answer for a five argument invocation.
|
Answer6
Generic interface to be used for configuring mock's answer for a six argument invocation.
|
LenientStubber
Used for declaring optional stubbings with
Mockito.lenient() |
OngoingStubbing
Simply put: "When the x method is called then return y".
|
Stubber
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style
|
Stubbing
Stubbing declared on the mock object.
|
VoidAnswer1
Generic interface to be used for configuring mock's answer for a single argument invocation that returns nothing.
|
VoidAnswer2
Generic interface to be used for configuring mock's answer for a two argument invocation that returns nothing.
|
VoidAnswer3
Generic interface to be used for configuring mock's answer for a three argument invocation that returns nothing.
|
VoidAnswer4
Generic interface to be used for configuring mock's answer for a four argument invocation that returns nothing.
|
VoidAnswer5
Generic interface to be used for configuring mock's answer for a five argument invocation that returns nothing.
|
VoidAnswer6
Generic interface to be used for configuring mock's answer for a six argument invocation that returns nothing.
|
Class and Description |
---|
Answer
Generic interface to be used for configuring mock's answer.
|
Class and Description |
---|
Stubbing
Stubbing declared on the mock object.
|
Class and Description |
---|
Answer
Generic interface to be used for configuring mock's answer.
|
Class and Description |
---|
Answer
Generic interface to be used for configuring mock's answer.
|
BaseStubber
Base interface for stubbing consecutive method calls with
Mockito.doReturn(Object) syntax. |
OngoingStubbing
Simply put: "When the x method is called then return y".
|
Stubber
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style
|