use of com.thoughtworks.go.config.ConfigCache in project gocd by gocd.
the class AbstractConfigXmlWriterTest method setup.
@BeforeEach
public void setup() {
output = new ByteArrayOutputStream();
ConfigCache configCache = new ConfigCache();
xmlWriter = new MagicalGoConfigXmlWriter(configCache, ConfigElementImplementationRegistryMother.withNoPlugins());
xmlLoader = new MagicalGoConfigXmlLoader(configCache, ConfigElementImplementationRegistryMother.withNoPlugins());
}
use of com.thoughtworks.go.config.ConfigCache in project gocd by gocd.
the class RakeTaskTest method shouldNotKillAllChildrenWhenEmptyOnCancel.
@Test
public void shouldNotKillAllChildrenWhenEmptyOnCancel() throws Exception {
RakeTask rakeTask = new MagicalGoConfigXmlLoader(new ConfigCache(), ConfigElementImplementationRegistryMother.withNoPlugins()).fromXmlPartial("<rake>" + " <oncancel />" + "</rake>", RakeTask.class);
assertThat(rakeTask.cancelTask(), is(instanceOf(NullTask.class)));
}
use of com.thoughtworks.go.config.ConfigCache in project gocd by gocd.
the class RakeTaskTest method shouldDefaultToUsingAKillAllChildrenCancelTask.
@Test
public void shouldDefaultToUsingAKillAllChildrenCancelTask() throws Exception {
RakeTask rakeTask = new MagicalGoConfigXmlLoader(new ConfigCache(), ConfigElementImplementationRegistryMother.withNoPlugins()).fromXmlPartial("<rake/>", RakeTask.class);
assertThat(rakeTask.cancelTask(), is(instanceOf(KillAllChildProcessTask.class)));
}
Aggregations