public interface MockCreationListener extends MockitoListener
MockitoFramework.addListener(MockitoListener)
.Modifier and Type | Method and Description |
---|---|
void |
onMockCreated(Object mock,
MockCreationSettings settings)
Mock object was just created.
|
default void |
onStaticMockCreated(Class<?> mock,
MockCreationSettings settings)
Static mock object was just created.
|
void onMockCreated(Object mock, MockCreationSettings settings)
mock
- created mock objectsettings
- the settings used for creationdefault void onStaticMockCreated(Class<?> mock, MockCreationSettings settings)
mock
- the type being mockedsettings
- the settings used for creation