All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mockito.plugins.PluginSwitch Maven / Gradle / Ivy

There is a newer version: 2.0.2-beta
Show newest version
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