Class Plugins
java.lang.Object
org.mockito.internal.configuration.plugins.Plugins
Access to Mockito behavior that can be reconfigured by plugins
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AnnotationEngine
Returns the annotation engine available for the current runtime.static InstantiatorProvider2
Returns the instantiator provider available for the current runtime.static MemberAccessor
Returns the implementation of the member accessor available for the current runtime.static MockitoLogger
Returns the logger available for the current runtime.static MockMaker
Returns the implementation of the mock maker available for the current runtime.static List<MockResolver>
Returns a list of available mock resolvers if any.static MockitoPlugins
static StackTraceCleanerProvider
The implementation of the stack trace cleaner
-
Field Details
-
registry
-
-
Constructor Details
-
Plugins
private Plugins()
-
-
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
MockMaker
extension 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
MemberAccessor
extension exists or is visible in the current classpath. -
getInstantiatorProvider
Returns the instantiator provider available for the current runtime.Returns
DefaultInstantiatorProvider
if noInstantiatorProvider2
extension exists or is visible in the current classpath. -
getAnnotationEngine
Returns the annotation engine available for the current runtime.Returns
InjectingAnnotationEngine
if noAnnotationEngine
extension exists or is visible in the current classpath. -
getMockitoLogger
Returns the logger available for the current runtime.Returns
ConsoleMockitoLogger
if noMockitoLogger
extension 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
-