Search in sources :

Example 1 with JobPropertyStep

use of org.jenkinsci.plugins.workflow.multibranch.JobPropertyStep in project copyartifact-plugin by jenkinsci.

the class CopyArtifactPermissionPropertyTest method configProps.

@Test
public void configProps() throws Exception {
    JobProperty<?> property = new CopyArtifactPermissionProperty("project1,project2");
    SnippetizerTester tester = new SnippetizerTester(j);
    tester.assertRoundTrip(new JobPropertyStep(Collections.singletonList(property)), "properties([copyArtifactPermission('project1,project2')])");
}
Also used : SnippetizerTester(org.jenkinsci.plugins.workflow.cps.SnippetizerTester) JobPropertyStep(org.jenkinsci.plugins.workflow.multibranch.JobPropertyStep) Test(org.junit.Test)

Aggregations

SnippetizerTester (org.jenkinsci.plugins.workflow.cps.SnippetizerTester)1 JobPropertyStep (org.jenkinsci.plugins.workflow.multibranch.JobPropertyStep)1 Test (org.junit.Test)1