Skip to content
Permalink
Browse files

[JENKINS-28094] Added a test case to reproduce JENKINS-28094 (fails w…

…ith Jenkins-1.610).
  • Loading branch information...
ikedam committed Apr 25, 2015
1 parent ff6073c commit 11705eed9d2359e570a214b61288b0d65709b789
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/test/java/hudson/plugins/copyartifact/BuildSelectorParameterTest.java
@@ -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.
You can’t perform that action at this time.