Class Plugins
java.lang.Object
org.mockito.internal.configuration.plugins.Plugins
Access to Mockito behavior that can be reconfigured by plugins
-
Method Summary
Modifier and TypeMethodDescriptionstatic AnnotationEngineReturns the annotation engine available for the current runtime.static DoNotMockEnforcerWithTypeReturns theDoNotMockenforcer available for the current runtime.static InstantiatorProvider2Returns the instantiator provider available for the current runtime.static MemberAccessorReturns the implementation of the member accessor available for the current runtime.static MockitoLoggerReturns the logger available for the current runtime.static MockMakerReturns the implementation of the mock maker available for the current runtime.static List<MockResolver> Returns a list of available mock resolvers if any.static MockitoPluginsstatic StackTraceCleanerProviderThe implementation of the stack trace cleaner
-
Method Details
-
getStackTraceCleanerProvider
The implementation of the stack trace cleaner -
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. -
getMemberAccessor
Returns the implementation of the member accessor available for the current runtime.Returns default member accessor if no
MemberAccessorextension exists or is visible in the current classpath. -
getInstantiatorProvider
Returns the instantiator provider available for the current runtime.Returns
DefaultInstantiatorProviderif noInstantiatorProvider2extension exists or is visible in the current classpath. -
getAnnotationEngine
Returns the annotation engine available for the current runtime.Returns
InjectingAnnotationEngineif noAnnotationEngineextension exists or is visible in the current classpath. -
getMockitoLogger
Returns the logger available for the current runtime.Returns
ConsoleMockitoLoggerif noMockitoLoggerextension exists or is visible in the current classpath. -
getMockResolvers
Returns a list of available mock resolvers if any.- Returns:
- A list of available mock resolvers or an empty list if none are registered.
-
getPlugins
- Returns:
- instance of mockito plugins type
-
getDoNotMockEnforcer
Returns theDoNotMockenforcer available for the current runtime.Returns
DefaultDoNotMockEnforcerif noDoNotMockEnforcerWithTypeorDoNotMockEnforcerextension exists or is visible in the current classpath.
-