use of com.thoughtworks.go.config.JobConfigs in project gocd by gocd.
the class BuildPlansTest method shouldBombIfABuildPlanWithSameNameWithDifferentCaseIsAdded.
@Test
public void shouldBombIfABuildPlanWithSameNameWithDifferentCaseIsAdded() throws Exception {
JobConfigs jobConfigs = new JobConfigs();
jobConfigs.add(jobConfig("Test"));
try {
jobConfigs.add(jobConfig("test"));
fail("Should not be able to add build plan with the same name again");
} catch (RuntimeException ignored) {
}
}
use of com.thoughtworks.go.config.JobConfigs in project gocd by gocd.
the class BuildPlansTest method shouldFindBuildPlanByName.
@Test
public void shouldFindBuildPlanByName() {
JobConfigs jobConfigs = new JobConfigs();
jobConfigs.add(jobConfig("Test"));
assertThat(jobConfigs.containsName(new CaseInsensitiveString("Poo")), is(false));
}
use of com.thoughtworks.go.config.JobConfigs in project gocd by gocd.
the class BuildPlansTest method shouldBombIfABuildPlanWithSameNameIsAdded.
@Test
public void shouldBombIfABuildPlanWithSameNameIsAdded() throws Exception {
JobConfigs jobConfigs = new JobConfigs();
jobConfigs.add(jobConfig("Test"));
try {
jobConfigs.add(jobConfig("Test"));
fail("Should not be able to add build plan with the same name again");
} catch (RuntimeException ignored) {
}
}
use of com.thoughtworks.go.config.JobConfigs in project gocd by gocd.
the class PipelineServiceTriangleDependencyTest method jobs.
private JobConfigs jobs() {
JobConfigs configs = new JobConfigs();
configs.add(new JobConfig("job"));
return configs;
}
use of com.thoughtworks.go.config.JobConfigs in project gocd by gocd.
the class PipelineServiceTest method jobs.
private JobConfigs jobs() {
JobConfigs configs = new JobConfigs();
configs.add(new JobConfig("job"));
return configs;
}
Aggregations