org.jvnet.hudson.test
Class TestPluginManager

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.PluginManager
          extended by org.jvnet.hudson.test.TestPluginManager
All Implemented Interfaces:
ModelObject, SearchableModelObject, SearchItem

public class TestPluginManager
extends 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

Author:
Kohsuke Kawaguchi
See Also:
HudsonTestCase.useLocalPluginManager

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.PluginManager
PluginManager.FailedPlugin
 
Field Summary
static PluginManager INSTANCE
           
 
Fields inherited from class hudson.PluginManager
activePlugins, context, failedPlugins, plugins, pluginUploaded, rootDir, uberClassLoader
 
Method Summary
protected  Collection<String> loadBundledPlugins()
           
 void stop()
           
 
Methods inherited from class hudson.PluginManager
copyBundledPlugin, discover, doInstall, doProxyConfigure, doSiteConfigure, doUpdateSources, doUploadPlugin, getDisplayName, getFailedPlugins, getPlugin, getPlugin, getPlugins, getPlugins, getPluginStrategy, getSearchUrl, initTasks, isPluginUploaded
 
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 Detail

INSTANCE

public static final PluginManager INSTANCE
Method Detail

loadBundledPlugins

protected Collection<String> loadBundledPlugins()
                                         throws Exception
Specified by:
loadBundledPlugins in class PluginManager
Throws:
Exception

stop

public void stop()
Overrides:
stop in class PluginManager


Copyright © 2010. All Rights Reserved.