Package | Description |
---|---|
org.mockito |
Mockito is a mock library for java - see
Mockito class for for usage. |
org.mockito.configuration |
Mockito configuration utilities.
|
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.
|
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.
|
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.
|
Class and Description |
---|
Answer
Generic interface to be used for configuring mock's answer.
|
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
|