Package | Description |
---|---|
org.mockito |
Mockito is a mock library for java - see Mockito class for for usage.
|
org.mockito.listeners |
Public classes relative to the call listener.
|
org.mockito.mock | |
org.mockito.plugins |
Mockito plugins allow customization of behavior.
|
Modifier and Type | Interface and Description |
---|---|
interface |
MockitoFramework
Mockito framework settings and lifecycle listeners, for advanced users or for integrating with other frameworks.
|
Modifier and Type | Method and Description |
---|---|
static MockitoFramework |
Mockito.framework()
For advanced users or framework integrators.
|
MockSettings |
MockSettings.outerInstance(Object outerClassInstance)
Makes it possible to mock non-static inner classes in conjunction with
MockSettings.useConstructor() . |
void |
MockitoFramework.setStubbingListener(StubbingListener listener)
Sets new
StubbingListener . |
static <T> T |
Mockito.spy(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 |
StubbingListener
Listener that allows to listen on events related to stubbing.
|
Modifier and Type | Class and Description |
---|---|
class |
SerializableMode
Mock serializable style.
|
Modifier and Type | Method and Description |
---|---|
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 |
---|---|
static interface |
MockMaker.TypeMockability
Carries the mockability information
|
interface |
PluginSwitch
Allows switching off the plugins that are discovered on classpath.
|
Modifier and Type | Method and Description |
---|---|
MockMaker.TypeMockability |
MockMaker.isTypeMockable(Class<?> type)
Indicates if the given type can be mocked by this mockmaker.
|