public class UnitTestSupportingPluginManager
extends hudson.PluginManager
PluginManager
that can work with unit tests where dependencies are just jars.
PluginManager
to speed up unit tests.
Instead of loading every plugin for every test case, this allows them to reuse a single plugin manager.
TODO: Plugin
start/stop/postInitialize invocation semantics gets different. Perhaps
HudsonTestCase.useLocalPluginManager
Constructor and Description |
---|
UnitTestSupportingPluginManager(File rootDir) |
Modifier and Type | Method and Description |
---|---|
void |
installDetachedPlugin(String shortName)
Dynamically load a detached plugin that would not otherwise get loaded.
|
protected Collection<String> |
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, stop, whichPlugin
public UnitTestSupportingPluginManager(File rootDir)
protected Collection<String> loadBundledPlugins() throws Exception
loadBundledPlugins
in class hudson.PluginManager
Exception
LocalPluginManager.loadBundledPlugins()
public void installDetachedPlugin(String shortName) throws Exception
loadBundledPlugins()
.
You may need to first install any transitive dependencies.shortName
- cvs
for exampleException
Copyright © 2004–2022. All rights reserved.