Class Plugins
- java.lang.Object
-
- org.mockito.internal.configuration.plugins.Plugins
-
public class Plugins extends java.lang.ObjectAccess to Mockito behavior that can be reconfigured by plugins
-
-
Field Summary
Fields Modifier and Type Field Description private static PluginRegistryregistry
-
Constructor Summary
Constructors Constructor Description Plugins()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AnnotationEnginegetAnnotationEngine()Returns the annotation engine available for the current runtime.static InstantiatorProvider2getInstantiatorProvider()Returns the instantiator provider available for the current runtime.static MockitoLoggergetMockitoLogger()Returns the logger available for the current runtime.static MockMakergetMockMaker()Returns the implementation of the mock maker available for the current runtime.static MockitoPluginsgetPlugins()static StackTraceCleanerProvidergetStackTraceCleanerProvider()The implementation of the stack trace cleaner
-
-
-
Field Detail
-
registry
private static final PluginRegistry registry
-
-
Method Detail
-
getStackTraceCleanerProvider
public static StackTraceCleanerProvider getStackTraceCleanerProvider()
The implementation of the stack trace cleaner
-
getMockMaker
public static MockMaker getMockMaker()
Returns the implementation of the mock maker available for the current runtime.Returns default mock maker if no
MockMakerextension exists or is visible in the current classpath.
-
getInstantiatorProvider
public static InstantiatorProvider2 getInstantiatorProvider()
Returns the instantiator provider available for the current runtime.Returns
DefaultInstantiatorProviderif noInstantiatorProvider2extension exists or is visible in the current classpath.
-
getAnnotationEngine
public static AnnotationEngine getAnnotationEngine()
Returns the annotation engine available for the current runtime.Returns
InjectingAnnotationEngineif noAnnotationEngineextension exists or is visible in the current classpath.
-
getMockitoLogger
public static MockitoLogger getMockitoLogger()
Returns the logger available for the current runtime.Returns
ConsoleMockitoLoggerif noMockitoLoggerextension exists or is visible in the current classpath.
-
getPlugins
public static MockitoPlugins getPlugins()
- Returns:
- instance of mockito plugins type
-
-