Package | Description |
---|---|
org.mockito |
Mockito is a mock library for java - see Mockito class for for usage.
|
org.mockito.exceptions.stacktrace |
Stack trace filtering / cleaning public APIs.
|
org.mockito.internal.util.reflection |
reflection utilities
|
org.mockito.invocation |
Public API related to invocation
|
org.mockito.mock | |
org.mockito.plugins |
Modifier and Type | Interface and Description |
---|---|
interface |
MockingDetails
Provides mocking information.
|
Modifier and Type | Method and Description |
---|---|
static MockingDetails |
Mockito.mockingDetails(java.lang.Object toInspect)
Returns a MockingDetails instance that enables inspecting a particular object for Mockito related information.
|
MockSettings |
MockSettings.outerInstance(java.lang.Object outerClassInstance)
Makes it possible to mock non-static inner classes in conjunction with
MockSettings.useConstructor() . |
static <T> T |
Mockito.spy(java.lang.Class<T> classToSpy)
Please refer to the documentation of
Mockito.spy(Object) . |
MockSettings |
MockSettings.useConstructor()
Mockito attempts to use constructor when creating instance of the mock.
|
Modifier and Type | Interface and Description |
---|---|
interface |
StackTraceCleaner
Decides if particular StackTraceElement is excluded from the human-readable stack trace output.
|
Modifier and Type | Class and Description |
---|---|
class |
Fields
Small fluent reflection tools to work with fields.
|
class |
GenericMetadataSupport
This class can retrieve generic meta-data that the compiler stores on classes
and accessible members.
|
Modifier and Type | Interface and Description |
---|---|
interface |
DescribedInvocation
Provides information about the invocation, specifically a human readable description and the location.
|
interface |
Invocation
A method call on a mock object.
|
interface |
Location
Describes the location of something in the source code.
|
interface |
MockHandler
Mockito handler of an invocation on a mock.
|
interface |
StubInfo
The information about stubbing, for example the location of stubbing.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
MockHandler.handle(Invocation invocation)
Takes an invocation object and handles it.
|
Modifier and Type | Interface and Description |
---|---|
interface |
MockCreationSettings<T>
Informs about the mock settings.
|
class |
SerializableMode
Mock serializable style.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
MockCreationSettings.getOuterClassInstance()
Used when mocking non-static inner classes in conjunction with
MockCreationSettings.isUsingConstructor() |
boolean |
MockCreationSettings.isUsingConstructor()
Informs whether the mock instance should be created via constructor
|
Modifier and Type | Interface and Description |
---|---|
interface |
MockMaker
The facility to create mocks.
|
interface |
StackTraceCleanerProvider
An extension point to register custom
StackTraceCleaner . |