Package hudson

Class MockJenkins

java.lang.Object
hudson.MockJenkins

public class MockJenkins extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    jenkins.model.Jenkins
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MockJenkins

      public MockJenkins()
  • Method Details

    • getMockJenkins

      public jenkins.model.Jenkins getMockJenkins(HyperLocalPluginManager pm)
      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