Skip to content

Commit

Permalink
[JENKINS-25779] Established test baseline of current behavior.
Browse files Browse the repository at this point in the history
Originally-Committed-As: 240173e89fc5da4adfc23135ba9ae4c28b9a02d1
  • Loading branch information
jglick committed Feb 22, 2015
1 parent 42772ef commit 8134067
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -46,10 +46,13 @@
import org.jenkinsci.plugins.workflow.support.steps.StageStep;
import org.jenkinsci.plugins.workflow.support.steps.WorkspaceStep;
import org.jenkinsci.plugins.workflow.support.steps.build.BuildTriggerStep;
import org.jenkinsci.plugins.workflow.support.steps.input.InputStep;
import org.junit.Test;
import static org.junit.Assert.*;
import org.junit.ClassRule;
import org.junit.Ignore;
import org.jvnet.hudson.test.Email;
import org.jvnet.hudson.test.Issue;
import org.jvnet.hudson.test.JenkinsRule;

public class SnippetizerTest {
Expand Down Expand Up @@ -100,6 +103,12 @@ public class SnippetizerTest {
*/
}

@Ignore("TODO expected:<input ['Ready?']> but was:<input [id: '9f0de62738120076abeedd636a7629f7', message: 'Ready?', ok: 'Proceed', parameters: []]>")
@Issue("JENKINS-25779")
@Test public void defaultValues() throws Exception {
assertRoundTrip(new InputStep("Ready?"), "input 'Ready?'");
}

private static void assertRoundTrip(Step step, String expected) throws Exception {
assertEquals(expected, Snippetizer.object2Groovy(step));
GroovyShell shell = new GroovyShell(r.jenkins.getPluginManager().uberClassLoader);
Expand Down

0 comments on commit 8134067

Please sign in to comment.