Skip to content

Commit

Permalink
[JENKINS-28094] Added a test case to reproduce JENKINS-28094 (fails w…
Browse files Browse the repository at this point in the history
…ith Jenkins-1.610).
  • Loading branch information
ikedam committed Apr 25, 2015
1 parent ff6073c commit 11705ee
Showing 1 changed file with 11 additions and 0 deletions.
Expand Up @@ -91,4 +91,15 @@ public void testParameter() throws Exception {
while (job.getLastBuild().isBuilding()) Thread.sleep(100);
assertEquals("<SavedBuildSelector/>", ceb.getEnvVars().get("SELECTOR"));
}

public void testConfiguration() throws Exception {
BuildSelectorParameter expected = new BuildSelectorParameter("SELECTOR", new StatusBuildSelector(true), "foo");
FreeStyleProject job = createFreeStyleProject();
job.addProperty(new ParametersDefinitionProperty(expected));
job.save();

job = configRoundtrip(job);
BuildSelectorParameter actual = (BuildSelectorParameter)job.getProperty(ParametersDefinitionProperty.class).getParameterDefinition("SELECTOR");
assertEqualDataBoundBeans(expected, actual);
}
}

0 comments on commit 11705ee

Please sign in to comment.