Uses of Class
org.jvnet.hudson.test.JenkinsRule
Packages that use 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
Constructors in hudson.cli with parameters of type JenkinsRuleModifierConstructorDescriptionCLICommandInvoker
(JenkinsRule rule, hudson.cli.CLICommand command) CLICommandInvoker
(JenkinsRule rule, String command) -
Uses of JenkinsRule in hudson.security.pages
Methods in hudson.security.pages with parameters of type JenkinsRule -
Uses of JenkinsRule in hudson.slaves
Subclasses of JenkinsRule in hudson.slavesConstructors in hudson.slaves with parameters of type JenkinsRuleModifierConstructorDescriptionDummyCloudImpl
(JenkinsRule rule, int delay) DummyCloudImpl
(JenkinsRule rule, int delay, List<hudson.slaves.NodeProperty<?>> nodeProperties) -
Uses of JenkinsRule in org.jvnet.hudson.test
Subclasses of JenkinsRule in org.jvnet.hudson.testModifier and TypeClassDescriptionclass
JenkinsRule
variant with special options for tests written in Groovy.static final class
Fields in org.jvnet.hudson.test declared as JenkinsRuleModifier and TypeFieldDescriptionRestartableJenkinsRule.j
final JenkinsRule
JenkinsComputerConnectorTester.jenkinsRule
Methods in org.jvnet.hudson.test that return JenkinsRuleModifier 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.Methods in org.jvnet.hudson.test with parameters of type JenkinsRuleModifier 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.Constructors in org.jvnet.hudson.test with parameters of type JenkinsRuleModifierConstructorDescriptionJenkinsComputerConnectorTester
(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
Methods in org.jvnet.hudson.test.recipes with parameters of type JenkinsRuleModifier 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