Package hudson
Class MockJenkins
java.lang.Object
hudson.MockJenkins
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjenkins.model.JenkinsThere are a few methods that need to be mocked in order for setup to work properly: * getPluginManager -> must return HyperLocalPluginManager * getInitLevel -> COMPLETED; Jenkins is "setup" as soon as the pm is populated * getExtensionList -> use the MockExtensionLists * getPlugin -> get the Plugin information from HyperLocalPluginManager
-
Constructor Details
-
MockJenkins
public MockJenkins()
-
-
Method Details
-
getMockJenkins
There are a few methods that need to be mocked in order for setup to work properly: * getPluginManager -> must return HyperLocalPluginManager * getInitLevel -> COMPLETED; Jenkins is "setup" as soon as the pm is populated * getExtensionList -> use the MockExtensionLists * getPlugin -> get the Plugin information from HyperLocalPluginManager
-