org.mockito.internal.configuration.plugins.Plugins Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockito-all Show documentation
Show all versions of mockito-all Show documentation
Mock objects library for java
package org.mockito.internal.configuration.plugins;
import org.mockito.plugins.MockMaker;
import org.mockito.plugins.StackTraceCleanerProvider;
/**
* Access to Mockito behavior that can be reconfigured by plugins
*/
public class Plugins {
private static PluginRegistry registry = new PluginRegistry();
/**
* The implementation of the stack trace cleaner
*/
public static StackTraceCleanerProvider getStackTraceCleanerProvider() {
return registry.getStackTraceCleanerProvider();
}
/**
* Returns the implementation of the mock maker available for the current runtime.
*
* Returns {@link org.mockito.internal.creation.cglib.CglibMockMaker} if no
* {@link org.mockito.plugins.MockMaker} extension exists or is visible in the current classpath.
*/
public static MockMaker getMockMaker() {
return registry.getMockMaker();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy