Package hudson.model

Examples of hudson.model.BooleanParameterValue


                captor.capture());
       
        Assert.assertEquals(2, captor.getValue().getParameters().size());
        Assert.assertEquals(new StringParameterValue("key", "value"),
                captor.getValue().getParameters().get(0));
        Assert.assertEquals(new BooleanParameterValue("key2", true),
                captor.getValue().getParameters().get(1));
    }
View Full Code Here


    }

    @Test public void buildTriggerStep() throws Exception {
        BuildTriggerStep step = new BuildTriggerStep("downstream");
        assertRoundTrip(step, "build 'downstream'");
        step.setParameters(Arrays.asList(new StringParameterValue("branch", "default"), new BooleanParameterValue("correct", true)));
        /* TODO figure out how to add support for ParameterValue without those having Descriptor’s yet
                currently instantiate works but uninstantiate does not offer a FQN
                (which does not matter in this case since BuildTriggerStep/config.jelly does not offer to bind parameters anyway)
        assertRoundTrip(step, "build job: 'downstream', parameters: [[$class: 'hudson.model.StringParameterValue', name: 'branch', value: 'default'], [$class: 'hudson.model.BooleanParameterValue', name: 'correct', value: true]]");
        */
 
View Full Code Here

  @Override
  public Action getAction(AbstractBuild<?, ?> build, TaskListener listener) throws IOException, InterruptedException, DontTriggerException {
   
    List<ParameterValue> values = new ArrayList<ParameterValue>();
    for (BooleanParameterConfig config : configs) {
      values.add(new BooleanParameterValue(config.getName(), config.getValue()));
    }
    return new ParametersAction(values);
  }
View Full Code Here

TOP

Related Classes of hudson.model.BooleanParameterValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.