use of com.thoughtworks.go.fixture.PipelineWithTwoStages in project gocd by gocd.
the class StageOrderTest method setUp.
@Before
public void setUp() throws Exception {
preCondition = new PipelineWithTwoStages(materialRepository, transactionTemplate, temporaryFolder);
configHelper.onSetUp();
configHelper.usingCruiseConfigDao(goConfigDao);
dbHelper.onSetUp();
preCondition.usingConfigHelper(configHelper).usingDbHelper(dbHelper).onSetUp();
}
use of com.thoughtworks.go.fixture.PipelineWithTwoStages in project gocd by gocd.
the class PipelineScheduleServiceTest method shouldForceFirstStagePlanWhenOtherStageIsRunning.
@Test
public void shouldForceFirstStagePlanWhenOtherStageIsRunning() throws Exception {
pipelineWithTwoStages = new PipelineWithTwoStages(materialRepository, transactionTemplate, temporaryFolder);
pipelineWithTwoStages.usingDbHelper(dbHelper).usingConfigHelper(configHelper).onSetUp();
pipelineWithTwoStages.createPipelineWithFirstStagePassedAndSecondStageRunning();
Pipeline pipeline = manualSchedule(pipelineWithTwoStages.pipelineName);
assertThat(pipeline.getFirstStage().isActive(), is(true));
}
use of com.thoughtworks.go.fixture.PipelineWithTwoStages in project gocd by gocd.
the class PipelineScheduleServiceTest method shouldForceFirstStagePlan.
@Test
public void shouldForceFirstStagePlan() throws Exception {
pipelineWithTwoStages = new PipelineWithTwoStages(materialRepository, transactionTemplate, temporaryFolder);
pipelineWithTwoStages.usingDbHelper(dbHelper).usingConfigHelper(configHelper).onSetUp();
pipelineWithTwoStages.createPipelineWithFirstStagePassedAndSecondStageRunning();
Pipeline pipeline = manualSchedule(pipelineWithTwoStages.pipelineName);
assertThat(pipeline.getFirstStage().stageState(), is(StageState.Building));
}
use of com.thoughtworks.go.fixture.PipelineWithTwoStages in project gocd by gocd.
the class PropertiesServiceTest method setUp.
@Before
public void setUp() throws Exception {
configHelper = new GoConfigFileHelper();
configHelper.usingCruiseConfigDao(goConfigDao);
configHelper.onSetUp();
fixture = new PipelineWithTwoStages(materialRepository, transactionTemplate, temporaryFolder);
fixture.usingConfigHelper(configHelper).usingDbHelper(dbHelper).onSetUp();
}
use of com.thoughtworks.go.fixture.PipelineWithTwoStages in project gocd by gocd.
the class RescheduleJobTest method setUp.
@Before
public void setUp() throws Exception {
configHelper.usingCruiseConfigDao(goConfigDao);
configHelper.onSetUp();
fixture = new PipelineWithTwoStages(materialRepository, transactionTemplate, temporaryFolder);
fixture.usingConfigHelper(configHelper).usingDbHelper(dbHelper).onSetUp();
configHelper.addPipeline(PIPELINE_NAME, STAGE_NAME);
stage = dbHelper.saveBuildingStage(PIPELINE_NAME, STAGE_NAME);
}
Aggregations