use of com.thoughtworks.go.domain.label.PipelineLabel in project gocd by gocd.
the class PipelineLabelTest method shouldCreateLabelIfTemplateIsProvided.
@Test
public void shouldCreateLabelIfTemplateIsProvided() {
PipelineLabel label = PipelineLabel.create("Pipeline-${ABC}");
assertThat(label, Is.is(new PipelineLabel("Pipeline-${ABC}")));
}
use of com.thoughtworks.go.domain.label.PipelineLabel in project gocd by gocd.
the class PipelineLabelTest method ensureLabelIsReplaced.
private void ensureLabelIsReplaced(String name) {
PipelineLabel label = getReplacedLabelFor(name, String.format("release-${%s}", name));
assertThat(label.toString(), is("release-" + ModificationsMother.currentRevision()));
}
use of com.thoughtworks.go.domain.label.PipelineLabel in project gocd by gocd.
the class PipelineLabelTest method shouldIgnoreCaseInCountingTemplate.
@Test
public void shouldIgnoreCaseInCountingTemplate() throws Exception {
PipelineLabel label = PipelineLabel.create(testingTemplate);
label.updateLabel(getNamedRevision(2));
assertThat(label.toString(), is("testing.2.label"));
}
Aggregations