Interface PluginSwitch


  • @Incubating
    public interface PluginSwitch
    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 MockMaker
    Since:
    1.10.15
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isEnabled​(java.lang.String pluginClassName)
      Mockito invokes this method for every plugin found in the classpath (except from the PluginSwitch implementation itself).
    • Method Detail

      • isEnabled

        boolean isEnabled​(java.lang.String pluginClassName)
        Mockito invokes this method for every plugin found in the classpath (except from the PluginSwitch implementation itself). If no custom plugins are discovered this method is not invoked.
        Since:
        1.10.15