org.mockito.plugins.PluginSwitch 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.plugins;
import org.mockito.Incubating;
/**
* Allows switching off the plugins that are discovered on classpath.
* When a particular plugin is switched off, the default Mockito behavior is used.
* For example, if Android's dexmaker MockMaker is switched off,
* Mockito default MockMaker implementation is used {@link org.mockito.plugins.MockMaker}
*
* @since 1.10.15
*/
@Incubating
public interface PluginSwitch {
/**
* Mockito invokes this method for every plugin found in the classpath
* (except from the {@code PluginSwitch} implementation itself).
* If no custom plugins are discovered this method is not invoked.
*
* @since 1.10.15
*/
boolean isEnabled(String pluginClassName);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy