@Documented @Recipe(value=LocalData.RunnerImpl.class) @JenkinsRecipe(value=LocalData.RuleRunnerImpl.class) @Target(value=METHOD) @Retention(value=RUNTIME) public @interface LocalData
This recipe allows your test case to start with the preset
JENKINS_HOME data loaded
either from your test method or from the test class.
For example, if the test method is
you can have your test data in one of the following places in resources folder
org/acme/FooTest/testBardirectory; that is, you could have files such as
org/acme/FooTest/testBar/jobs/p/config.xml, in the same layout as in the real
org/acme/FooTest/testBar.zipas a zip file.
org/acme/FooTestdirectory; that is, you could have files such as
org/acme/FooTest/jobs/p/config.xml, in the same layout as in the real
org/acme/FooTest.zipas a zip file.
Search is performed in this specific order. The fall back mechanism allows you to write one test class that interacts with different aspects of the same data set, by associating the dataset with a test class, or have a data set local to a specific test method.
The choice of zip and directory depends on the nature of the test data, as well as the size of it.
public abstract String value
Copyright © 2004–2022. All rights reserved.