use of com.thoughtworks.go.domain.StageConfigIdentifier in project gocd by gocd.
the class StageStatusCacheTest method shouldLoadMostRecentInstanceFromDBForTheFirstTime.
@Test
public void shouldLoadMostRecentInstanceFromDBForTheFirstTime() throws SQLException {
pipelineFixture.createdPipelineWithAllStagesPassed();
Pipeline pipeline = pipelineFixture.createPipelineWithFirstStageScheduled();
Stage expect = pipeline.getStages().byName(pipelineFixture.devStage);
assertThat(stageStatusCache.currentStage(new StageConfigIdentifier(pipelineFixture.pipelineName, pipelineFixture.devStage)), is(expect));
}
Aggregations