Package | Description |
---|---|
org.mockito |
Mockito is a mock library for java - see Mockito class for for usage.
|
org.mockito.internal |
Internal classes, not to be used by clients.
|
org.mockito.internal.creation |
Mock object creation.
|
org.mockito.internal.listeners | |
org.mockito.internal.progress |
Mocking progress stateful classes.
|
Modifier and Type | Method and Description |
---|---|
MockSettings |
MockSettings.defaultAnswer(Answer defaultAnswer)
Specifies default answers to interactions.
|
MockSettings |
MockSettings.extraInterfaces(Class<?>... interfaces)
Specifies extra interfaces the mock should implement.
|
MockSettings |
MockSettings.name(String name)
Specifies mock name.
|
MockSettings |
MockSettings.serializable()
Configures the mock to be serializable.
|
MockSettings |
MockSettings.spiedInstance(Object instance)
Specifies the instance to spy on.
|
static MockSettings |
Mockito.withSettings()
Allows mock creation with additional mock settings.
|
Modifier and Type | Method and Description |
---|---|
static <T> T |
Mockito.mock(Class<T> classToMock,
MockSettings mockSettings)
Creates a mock with some non-standard settings.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
MockitoCore.mock(Class<T> classToMock,
MockSettings mockSettings) |
Modifier and Type | Class and Description |
---|---|
class |
MockSettingsImpl |
Modifier and Type | Method and Description |
---|---|
MockSettings |
MockSettingsImpl.defaultAnswer(Answer defaultAnswer) |
MockSettings |
MockSettingsImpl.extraInterfaces(Class<?>... extraInterfaces) |
MockSettings |
MockSettingsImpl.name(String name) |
MockSettings |
MockSettingsImpl.serializable() |
MockSettings |
MockSettingsImpl.spiedInstance(Object spiedInstance) |
Modifier and Type | Method and Description |
---|---|
void |
MockingStartedListener.mockingStarted(Object mock,
Class classToMock,
MockSettings mockSettings) |
void |
CollectCreatedMocks.mockingStarted(Object mock,
Class classToMock,
MockSettings mockSettings) |
Modifier and Type | Method and Description |
---|---|
void |
ThreadSafeMockingProgress.mockingStarted(Object mock,
Class classToMock,
MockSettings mockSettings) |
void |
MockingProgressImpl.mockingStarted(Object mock,
Class classToMock,
MockSettings mockSettings) |
void |
MockingProgress.mockingStarted(Object mock,
Class classToMock,
MockSettings mockSettings) |
Copyright © 2018. All rights reserved.