public class TestPluginManager
extends hudson.PluginManager
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| Modifier and Type | Field and Description |
|---|---|
static hudson.PluginManager |
INSTANCE |
| Constructor and Description |
|---|
TestPluginManager() |
| 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() |
void |
stop() |
addDependencies, copyBundledPlugin, createDefault, createPluginStrategy, discover, doCheckUpdatesServer, doInstall, doInstallNecessaryPlugins, doInstallPlugins, doInstallPluginsDone, doPlugins, doPrevalidateConfig, doProxyConfigure, doSiteConfigure, doUpdateSources, doUploadPlugin, dynamicLoad, dynamicLoad, getApi, getBundledPluginManifest, getCompatibilityTransformer, getDisplayName, getFailedPlugins, getOverrides, getPlugin, getPlugin, getPlugins, getPlugins, getPluginStrategy, getProxyDescriptor, getSearchUrl, getWorkDir, identifyPluginShortName, initTasks, install, isPluginUploaded, loadDetachedPlugins, loadPluginsFromWar, loadPluginsFromWar, parseRequestedPlugins, prevalidateConfig, resolveDependantPlugins, whichPluginpublic TestPluginManager()
throws IOException
IOExceptionprotected Collection<String> loadBundledPlugins() throws Exception
loadBundledPlugins in class hudson.PluginManagerExceptionLocalPluginManager.loadBundledPlugins()public void installDetachedPlugin(String shortName) throws Exception
loadBundledPlugins().
You may need to first install any transitive dependencies.shortName - cvs for exampleExceptionpublic void stop()
stop in class hudson.PluginManagerCopyright © 2004–2019. All rights reserved.