Search in sources :

Example 1 with LocalData

use of org.jvnet.hudson.test.recipes.LocalData in project promoted-builds-plugin by jenkinsci.

the class ConfigurationRoundtripTest method testLoad.

@LocalData
@Bug(17341)
public void testLoad() throws Exception {
    FreeStyleProject j = jenkins.getItemByFullName("j", FreeStyleProject.class);
    assertNotNull(j);
    Promotion p = j.getProperty(JobPropertyImpl.class).getItem("OK").getBuildByNumber(1);
    assertNotNull(p);
}
Also used : FreeStyleProject(hudson.model.FreeStyleProject) LocalData(org.jvnet.hudson.test.recipes.LocalData) Bug(org.jvnet.hudson.test.Bug)

Aggregations

FreeStyleProject (hudson.model.FreeStyleProject)1 Bug (org.jvnet.hudson.test.Bug)1 LocalData (org.jvnet.hudson.test.recipes.LocalData)1