public class JenkinsSessionRule extends Object implements org.junit.rules.TestRule
RestartableJenkinsRule
.
Most critically, then(org.jvnet.hudson.test.JenkinsSessionRule.Step)
runs immediately, so this rule plays nicely with things like After
.Modifier and Type | Class and Description |
---|---|
static interface |
JenkinsSessionRule.Step
One step to run, intended to be a SAM for lambdas with
then(org.jvnet.hudson.test.JenkinsSessionRule.Step) . |
Constructor and Description |
---|
JenkinsSessionRule() |
Modifier and Type | Method and Description |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
File |
getHome()
Get the Jenkins home directory, which is consistent across restarts.
|
void |
then(JenkinsSessionRule.Step s)
Run one Jenkins session and shut down.
|
public File getHome()
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
apply
in interface org.junit.rules.TestRule
public void then(JenkinsSessionRule.Step s) throws Throwable
Throwable
Copyright © 2004–2022. All rights reserved.