Package org.jvnet.hudson.test
Class JenkinsRecipe.Runner<T extends Annotation>
- java.lang.Object
-
- org.jvnet.hudson.test.JenkinsRecipe.Runner<T>
-
- Type Parameters:
T- The recipe annotation associated with this runner.
- Direct Known Subclasses:
LocalData.RuleRunnerImpl,PresetData.RuleRunnerImpl,WithPlugin.RuleRunnerImpl,WithPluginManager.RuleRunnerImpl
- Enclosing class:
- JenkinsRecipe
public abstract static class JenkinsRecipe.Runner<T extends Annotation> extends Object
The code that implements the recipe semantics.
-
-
Constructor Summary
Constructors Constructor Description Runner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecorateHome(JenkinsRule jenkinsRule, File home)Called right beforeJenkins(java.io.File, javax.servlet.ServletContext)is invoked to decorate the hudson home directory.voidsetup(JenkinsRule jenkinsRule, T recipe)Called duringTestCase.setUp()to prepare the test environment.voidtearDown(JenkinsRule jenkinsRule, T recipe)Called duringTestCase.tearDown()to shut down the test environment.
-
-
-
Method Detail
-
setup
public void setup(JenkinsRule jenkinsRule, T recipe) throws Exception
Called duringTestCase.setUp()to prepare the test environment.- Throws:
Exception
-
decorateHome
public void decorateHome(JenkinsRule jenkinsRule, File home) throws Exception
Called right beforeJenkins(java.io.File, javax.servlet.ServletContext)is invoked to decorate the hudson home directory.- Throws:
Exception
-
tearDown
public void tearDown(JenkinsRule jenkinsRule, T recipe) throws Exception
Called duringTestCase.tearDown()to shut down the test environment.- Throws:
Exception
-
-