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
HudsonTestCase.useLocalPluginManager
Modifier and Type | Field and Description |
---|---|
static hudson.PluginManager |
INSTANCE |
Constructor and Description |
---|
TestPluginManager() |
Modifier and Type | Method and Description |
---|---|
void |
stop() |
installDetachedPlugin, loadBundledPlugins
addDependencies, copyBundledPlugin, createCache, createDefault, createPluginStrategy, disablePlugins, discover, doCheckUpdatesServer, doInstall, doInstallNecessaryPlugins, doInstallPlugins, doInstallPluginsDone, doPlugins, doPrevalidateConfig, doProxyConfigure, doSiteConfigure, doUpdateSources, doUploadPlugin, dynamicLoad, dynamicLoad, getApi, getBundledPluginManifest, getCompatibilityTransformer, getDisplayName, getFailedPlugins, getLastErrorCheckUpdateCenters, getOverrides, getPlugin, getPlugin, getPlugins, getPlugins, getPluginStrategy, getProxyDescriptor, getSearchUrl, getTarget, getWorkDir, identifyPluginShortName, initTasks, install, isPluginUploaded, loadDetachedPlugins, loadPluginsFromWar, loadPluginsFromWar, parseRequestedPlugins, prevalidateConfig, resolveDependentPlugins, start, whichPlugin
public TestPluginManager() throws IOException
IOException
Copyright © 2004–2022. All rights reserved.