public interface MockitoPlugins
MockitoFramework.getPlugins()
.
This object enables framework integrators to get access to default Mockito plugins.
Example use case: one needs to implement custom MockMaker
and delegate some behavior to the default Mockito implementation.
The interface was introduced to help framework integrations.
Modifier and Type | Method and Description |
---|---|
<T> T |
getDefaultPlugin(Class<T> pluginType)
Returns the default plugin implementation used by Mockito.
|
MockMaker |
getInlineMockMaker()
Returns inline mock maker, an optional mock maker that is bundled with Mockito distribution.
|
<T> T getDefaultPlugin(Class<T> pluginType)
pluginType
- type of the plugin, for example MockMaker
.MockMaker getInlineMockMaker()
getDefaultPlugin(Class)
does not provide an instance of inline mock maker.
Creates new instance each time is called so it is recommended to keep hold of the resulting object for future invocations.
For more information about inline mock maker see the javadoc for main Mockito
class.