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 | |
org.mockito.stubbing |
External stubbing related classes
|
Class and Description |
---|
Answer
Generic interface to be used for configuring mock's answer.
|
Answer1
One parameter function which returns something
|
Answer2
Two parameter function which returns something
|
Answer3
Three parameter function which returns something
|
Answer4
Three parameter function which returns something
|
Answer5
Three parameter function which returns something
|
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
One parameter void function
|
VoidAnswer2
Two parameter void function
|
VoidAnswer3
Two parameter void function
|
VoidAnswer4
Two parameter void function
|
VoidAnswer5
Two parameter void function
|
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
|