Class JenkinsAcceptanceTestRule

  • All Implemented Interfaces:
    org.junit.rules.MethodRule

    public class JenkinsAcceptanceTestRule
    extends Object
    implements org.junit.rules.MethodRule
    Runs Guice container that houses JenkinsController, WebDriver, and so on.

    Add this rule to your Unit test class if you want to leverage this harness.

    This is the glue that connects JUnit to the logic of the test harness.

    Author:
    Kohsuke Kawaguchi
    • Constructor Detail

      • JenkinsAcceptanceTestRule

        public JenkinsAcceptanceTestRule()
    • Method Detail

      • apply

        public org.junit.runners.model.Statement apply​(org.junit.runners.model.Statement base,
                                                       org.junit.runners.model.FrameworkMethod method,
                                                       Object target)
        Specified by:
        apply in interface org.junit.rules.MethodRule