@Test public void shouldReturnFalseIfPipelineNotExist() { PipelineConfigs configs = createWithPipeline(PipelineConfigMother.pipelineConfig("pipeline1")); assertThat( "shouldReturnFalseIfPipelineNotExist", configs.hasPipeline(new CaseInsensitiveString("not-exist")), is(false)); }
@Test public void shouldReturnTrueIfPipelineExist() { PipelineConfig pipelineConfig = PipelineConfigMother.pipelineConfig("pipeline1"); PipelineConfigs configs = createWithPipeline(pipelineConfig); assertThat( "shouldReturnTrueIfPipelineExist", configs.hasPipeline(new CaseInsensitiveString("pipeline1")), is(true)); }