Package org.jvnet.hudson.test.recipes
Class Recipe.Runner<T extends Annotation>
java.lang.Object
org.jvnet.hudson.test.recipes.Recipe.Runner<T>
- Type Parameters:
T
- The recipe annotation associated with this runner.
- Direct Known Subclasses:
LocalData.RunnerImpl
,PresetData.RunnerImpl
,WithoutJenkins.RunnerImpl
,WithPlugin.RunnerImpl
,WithPluginManager.RunnerImpl
,WithTimeout.RunnerImpl
- Enclosing class:
- Recipe
The code that implements the recipe semantics.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
decorateHome
(HudsonTestCase testCase, File home) Called right beforeJenkins(File, jakarta.servlet.ServletContext)
is invoked to decorate the hudson home directory.void
setup
(HudsonTestCase testCase, T recipe) Called duringTestCase.setUp()
to prepare the test environment.void
tearDown
(HudsonTestCase testCase, T recipe) Called duringTestCase.tearDown()
to shut down the test environment.
-
Constructor Details
-
Runner
public Runner()
-
-
Method Details
-
setup
Called duringTestCase.setUp()
to prepare the test environment.- Throws:
Exception
-
decorateHome
Called right beforeJenkins(File, jakarta.servlet.ServletContext)
is invoked to decorate the hudson home directory.- Throws:
Exception
-
tearDown
Called duringTestCase.tearDown()
to shut down the test environment.- Throws:
Exception
-