Skip to content

Commit

Permalink
[JENKINS-49649] - Add direct unit test for the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-nenashev committed Feb 21, 2018
1 parent 268454d commit 71ae152
Showing 1 changed file with 28 additions and 0 deletions.
@@ -0,0 +1,28 @@
package alex.jenkins.plugins;

import hudson.model.FreeStyleProject;
import hudson.model.ParametersDefinitionProperty;
import org.junit.Rule;
import org.junit.Test;
import org.jvnet.hudson.test.For;
import org.jvnet.hudson.test.Issue;
import org.jvnet.hudson.test.JenkinsRule;

@For(FileSystemListParameterDefinition.class)
public class FileSystemListParameterDefinitionTest {

@Rule
public JenkinsRule j = new JenkinsRule();

@Test
@Issue("JENKINS-49649")
public void smokeRoundtrip() throws Exception {
FreeStyleProject p = j.createFreeStyleProject();
FileSystemListParameterDefinition d = new FileSystemListParameterDefinition("name", "description", "path", "FILE", "", "", true, false);
ParametersDefinitionProperty params = new ParametersDefinitionProperty(d);
p.addProperty(params);

j.configRoundtrip(p);
}

}

0 comments on commit 71ae152

Please sign in to comment.