Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
JENKINS-42389 add test case to demonstrate problem
  • Loading branch information
imod committed Mar 8, 2017
1 parent 9e8f0a4 commit 679be22
Showing 1 changed file with 11 additions and 0 deletions.
@@ -1,6 +1,7 @@
package org.jenkinsci.plugins.configfiles.folder;

import com.cloudbees.hudson.plugins.folder.Folder;
import org.hamcrest.Matchers;
import org.jenkinsci.lib.configprovider.ConfigProvider;
import org.jenkinsci.lib.configprovider.model.Config;
import org.jenkinsci.plugins.configfiles.ConfigFileStore;
Expand Down Expand Up @@ -127,6 +128,16 @@ public void testSaveFolderConfigFiles() throws Exception {

}

@Test
public void sameFolderPropertyAfterConfiguration() throws Exception {
Folder f1 = createFolder();
ConfigFileStore store = getStore(f1);

r.configRoundtrip(f1);

assertThat(store, Matchers.is(getStore(f1)));
}

private CpsFlowDefinition getNewJobDefinition() {
return new CpsFlowDefinition(""
+ "node {\n" +
Expand Down

0 comments on commit 679be22

Please sign in to comment.