Uses of Class
org.jvnet.hudson.test.JenkinsRule
Package
Description
Test harness for Jenkins and its plugins.
Declaratively specify the environment in which a test will be run.
-
Uses of JenkinsRule in hudson.cli
ModifierConstructorDescriptionCLICommandInvoker
(JenkinsRule rule, hudson.cli.CLICommand command) CLICommandInvoker
(JenkinsRule rule, String command) -
Uses of JenkinsRule in hudson.security.pages
-
Uses of JenkinsRule in hudson.slaves
ModifierConstructorDescriptionDummyCloudImpl
(JenkinsRule rule, int delay) DummyCloudImpl
(JenkinsRule rule, int delay, List<hudson.slaves.NodeProperty<?>> nodeProperties) -
Uses of JenkinsRule in org.jvnet.hudson.test
Modifier and TypeClassDescriptionclass
JenkinsRule
variant with special options for tests written in Groovy.static final class
Modifier and TypeFieldDescriptionRestartableJenkinsRule.j
final JenkinsRule
JenkinsComputerConnectorTester.jenkinsRule
Modifier and TypeMethodDescriptionprotected JenkinsRule
RestartableJenkinsRule.createJenkinsRule
(org.junit.runner.Description description) JenkinsRule.with
(hudson.PluginManager pluginManager) JenkinsRule.with
(HudsonHomeLoader homeLoader) JenkinsRule.withExistingHome
(File source) JenkinsRule.withNewHome()
JenkinsRule.withPresetData
(String name) Declares that this test case expects to start with one of the preset data sets.Modifier and TypeMethodDescriptionhudson.model.Slave
InboundAgentRule.createAgent
(JenkinsRule r, String name) Creates, attaches, and starts a new inbound agent.hudson.model.Slave
InboundAgentRule.createAgent
(JenkinsRule r, InboundAgentRule.Options options) Creates, attaches, and optionally starts a new inbound agent.void
JenkinsRecipe.Runner.decorateHome
(JenkinsRule jenkinsRule, File home) Called right beforeJenkins(java.io.File, jakarta.servlet.ServletContext)
is invoked to decorate the hudson home directory.void
JenkinsSessionRule.Step.run
(JenkinsRule r) void
RealJenkinsRule.Step.run
(JenkinsRule r) RealJenkinsRule.Step2.run
(JenkinsRule r) void
void
RealJenkinsRule.StepWithOneArg.run
(JenkinsRule r, A1 arg1) RealJenkinsRule.StepWithReturnAndOneArg.run
(JenkinsRule r, A1 arg1) RealJenkinsRule.StepWithReturnAndThreeArgs.run
(JenkinsRule r, A1 arg1, A2 arg2, A3 arg3) RealJenkinsRule.StepWithReturnAndTwoArgs.run
(JenkinsRule r, A1 arg1, A2 arg2) void
RealJenkinsRule.StepWithThreeArgs.run
(JenkinsRule r, A1 arg1, A2 arg2, A3 arg3) void
RealJenkinsRule.StepWithTwoArgs.run
(JenkinsRule r, A1 arg1, A2 arg2) void
RestartableJenkinsRule.Step.run
(JenkinsRule r) void
JenkinsRecipe.Runner.setup
(JenkinsRule jenkinsRule, T recipe) Called duringTestCase.setUp()
to prepare the test environment.void
InboundAgentRule.start
(JenkinsRule r, String name) (Re-)starts an existing inbound agent.void
InboundAgentRule.start
(JenkinsRule r, InboundAgentRule.Options options) (Re-)starts an existing inbound agent.void
InboundAgentRule.stop
(JenkinsRule r, String name) Stop an existing inbound agent and wait for it to go offline.void
JenkinsRecipe.Runner.tearDown
(JenkinsRule jenkinsRule, T recipe) Called duringTestCase.tearDown()
to shut down the test environment.ModifierConstructorDescriptionJenkinsComputerConnectorTester
(JenkinsRule testCase) TailLog
(JenkinsRule jr, String job, int number) Watch a build expected to be loaded in the current JVM. -
Uses of JenkinsRule in org.jvnet.hudson.test.recipes
Modifier and TypeMethodDescriptionvoid
WithPlugin.RuleRunnerImpl.decorateHome
(JenkinsRule jenkinsRule, File home) void
WithPluginManager.RuleRunnerImpl.decorateHome
(JenkinsRule jenkinsRule, File home) void
LocalData.RuleRunnerImpl.setup
(JenkinsRule jenkinsRule, LocalData recipe) void
PresetData.RuleRunnerImpl.setup
(JenkinsRule jenkinsRule, PresetData recipe) void
WithPlugin.RuleRunnerImpl.setup
(JenkinsRule jenkinsRule, WithPlugin recipe) void
WithPluginManager.RuleRunnerImpl.setup
(JenkinsRule jenkinsRule, WithPluginManager recipe)
RealJenkinsRule