use of com.thoughtworks.go.config.Argument in project gocd by gocd.
the class ExecTaskTest method shouldSupportMultipleArgs.
@Test
public void shouldSupportMultipleArgs() throws Exception {
String xml = "<exec command='ls'>\n" + " <arg>arg1</arg>\n" + " <arg>arg2</arg>\n" + "</exec>";
ExecTask execTask = new MagicalGoConfigXmlLoader(new ConfigCache(), ConfigElementImplementationRegistryMother.withNoPlugins()).fromXmlPartial(xml, ExecTask.class);
assertThat(execTask.getArgList(), is(new Arguments(new Argument("arg1"), new Argument("arg2"))));
}
Aggregations