Search in sources :

Example 1 with SchedulerFixture

use of com.thoughtworks.go.fixture.SchedulerFixture in project gocd by gocd.

the class ScheduleServiceStageTriggerTest 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();
    schedulerFixture = new SchedulerFixture(dbHelper, stageDao, scheduleService);
}
Also used : SchedulerFixture(com.thoughtworks.go.fixture.SchedulerFixture) PipelineWithTwoStages(com.thoughtworks.go.fixture.PipelineWithTwoStages) Before(org.junit.Before)

Example 2 with SchedulerFixture

use of com.thoughtworks.go.fixture.SchedulerFixture in project gocd by gocd.

the class JobInstanceServiceIntegrationTest method setUp.

@Before
public void setUp() throws Exception {
    dbHelper.onSetUp();
    pipelineFixture = new PipelineWithTwoStages(materialRepository, transactionTemplate, temporaryFolder);
    configHelper.onSetUp();
    configHelper.usingCruiseConfigDao(goConfigDao);
    pipelineFixture.usingConfigHelper(configHelper).usingDbHelper(dbHelper).onSetUp();
    schedulerFixture = new SchedulerFixture(dbHelper, stageDao, scheduleService);
}
Also used : SchedulerFixture(com.thoughtworks.go.fixture.SchedulerFixture) PipelineWithTwoStages(com.thoughtworks.go.fixture.PipelineWithTwoStages) Before(org.junit.Before)

Aggregations

PipelineWithTwoStages (com.thoughtworks.go.fixture.PipelineWithTwoStages)2 SchedulerFixture (com.thoughtworks.go.fixture.SchedulerFixture)2 Before (org.junit.Before)2