Package | Description |
---|---|
org.mockito |
Mockito is a mock library for java - see
Mockito class for usage. |
org.mockito.invocation |
Public API related to mock method invocations.
|
org.mockito.mock |
Mock settings related classes.
|
org.mockito.session | |
org.mockito.stubbing |
Stubbing related classes.
|
Modifier and Type | Interface and Description |
---|---|
interface |
MockitoFramework
Mockito framework settings and lifecycle listeners, for advanced users or for integrating with other frameworks.
|
interface |
MockitoSession
MockitoSession is an optional, highly recommended feature
that helps driving cleaner tests by eliminating boilerplate code and adding extra validation. |
interface |
MockSettings
Allows mock creation with additional mock settings.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Invocation
A method call on a mock object.
|
interface |
InvocationContainer
Although this class is a part of public API, please don't provide your own implementations.
|
interface |
InvocationOnMock
An invocation on a mock.
|
interface |
Location
Describes the location of something in the source code.
|
Modifier and Type | Interface and Description |
---|---|
interface |
MockCreationSettings<T>
Informs about the mock settings.
|
Modifier and Type | Interface and Description |
---|---|
interface |
MockitoSessionBuilder
Fluent builder interface for
MockitoSession objects. |
interface |
MockitoSessionLogger
Logger for hints emitted when
finishing mocking for a
MockitoSession . |
Modifier and Type | Interface and Description |
---|---|
interface |
BaseStubber
Base interface for stubbing consecutive method calls with
Mockito.doReturn(Object) syntax. |
interface |
LenientStubber
Used for declaring optional stubbings with
Mockito.lenient() |
interface |
OngoingStubbing<T>
Simply put: "When the x method is called then return y".
|
interface |
Stubber
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style
|
interface |
Stubbing
Stubbing declared on the mock object.
|