Class TestPluginManager

java.lang.Object
hudson.model.AbstractModelObject
hudson.PluginManager
org.jvnet.hudson.test.UnitTestSupportingPluginManager
org.jvnet.hudson.test.TestPluginManager
All Implemented Interfaces:
hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem, jenkins.util.io.OnMaster, org.kohsuke.stapler.StaplerOverridable, org.kohsuke.stapler.StaplerProxy

public class TestPluginManager extends UnitTestSupportingPluginManager
PluginManager to speed up unit tests.

Instead of loading every plugin for every test case, this allows them to reuse a single plugin manager. This has the downside that you can not disabling plugins.

TODO: Plugin start/stop/postInitialize invocation semantics gets different. Perhaps

Author:
Kohsuke Kawaguchi
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class hudson.PluginManager

    hudson.PluginManager.FailedPlugin, hudson.PluginManager.MetadataCache, hudson.PluginManager.PluginCycleDependenciesMonitor, hudson.PluginManager.PluginDeprecationMonitor, hudson.PluginManager.PluginUpdateMonitor, hudson.PluginManager.UberClassLoader
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final hudson.PluginManager
     

    Fields inherited from class hudson.PluginManager

    activePlugins, CONFIGURE_UPDATECENTER, context, CUSTOM_PLUGIN_MANAGER, failedPlugins, FAST_LOOKUP, plugins, pluginUploaded, rootDir, SKIP_PERMISSION_CHECK, uberClassLoader, UPLOAD_PLUGINS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from class org.jvnet.hudson.test.UnitTestSupportingPluginManager

    installDetachedPlugin, loadBundledPlugins

    Methods inherited from class hudson.PluginManager

    addDependencies, copyBundledPlugin, createCache, createDefault, createPluginStrategy, disablePlugins, discover, doCheckPluginUrl, doCheckUpdatesServer, doInstall, doInstallNecessaryPlugins, doInstallPlugins, doInstallPluginsDone, doPlugins, doPluginsSearch, doPrevalidateConfig, doProxyConfigure, doSiteConfigure, doUpdateSources, doUploadPlugin, dynamicLoad, dynamicLoad, getApi, getBundledPluginManifest, getDisplayName, getFailedPlugins, getLastErrorCheckUpdateCenters, getOverrides, getPlugin, getPlugin, getPlugins, getPlugins, getPluginStrategy, getProxyDescriptor, getSearchUrl, getTarget, getWorkDir, hasAdoptThisPluginLabel, hasAdoptThisPluginLabel, hasLatestVersionNewerThanOffered, identifyPluginShortName, initTasks, install, isMetaLabel, isNonMetaLabel, isPluginUploaded, loadDetachedPlugins, loadPluginsFromWar, loadPluginsFromWar, parseRequestedPlugins, prevalidateConfig, resolveDependentPlugins, start, unscientific, whichPlugin

    Methods inherited from class hudson.model.AbstractModelObject

    getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • INSTANCE

      public static final hudson.PluginManager INSTANCE
  • Constructor Details

  • Method Details

    • stop

      public void stop()
      Overrides:
      stop in class hudson.PluginManager