Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-49649] - Add direct unit test for the issue
- Loading branch information
1 parent
268454d
commit 71ae152
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
src/test/java/alex/jenkins/plugins/FileSystemListParameterDefinitionTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} | ||
|
||
} |