use of com.thoughtworks.go.fixture.PipelineWithTwoStages in project gocd by gocd.
the class DatabaseDiskSpaceFullTest method setUp.
@Before
public void setUp() throws Exception {
configHelper.usingCruiseConfigDao(goConfigDao);
configHelper.onSetUp();
fixture = new PipelineWithTwoStages(materialRepository, transactionTemplate, temporaryFolder);
serverHealthService.removeAllLogs();
fixture.usingConfigHelper(configHelper).usingDbHelper(databaseAccessHelper).onSetUp();
configHelper.setupMailHost();
diskIsFull.onSetUp();
}
use of com.thoughtworks.go.fixture.PipelineWithTwoStages in project gocd by gocd.
the class GoPropertiesTestTest method setUp.
@Before
public void setUp() throws Exception {
configHelper = new GoConfigFileHelper();
configHelper.usingCruiseConfigDao(cruiseConfigDao);
configHelper.onSetUp();
fixture = new PipelineWithTwoStages(materialRepository, transactionTemplate, temporaryFolder);
fixture.usingConfigHelper(configHelper).usingDbHelper(dbHelper).onSetUp();
configHelper.addAgent(HOSTNAME, AGENT_UUID);
}
use of com.thoughtworks.go.fixture.PipelineWithTwoStages in project gocd by gocd.
the class JobAssignmentTest method setUp.
@Before
public void setUp() throws Exception {
configHelper.onSetUp();
configHelper.usingCruiseConfigDao(cruiseConfigDao);
fixture = new PipelineWithTwoStages(materialRepository, transactionTemplate, temporaryFolder);
fixture.usingConfigHelper(configHelper).usingDbHelper(dbHelper).usingThreeJobs().onSetUp();
systemEnvironment = new SystemEnvironment();
}
use of com.thoughtworks.go.fixture.PipelineWithTwoStages 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);
}
use of com.thoughtworks.go.fixture.PipelineWithTwoStages in project gocd by gocd.
the class PipelineScheduleQueueIntegrationTest method setup.
@Before
public void setup() throws Exception {
configFileEditor = new GoConfigFileHelper();
configFileEditor.onSetUp();
dbHelper.onSetUp();
configFileEditor.usingCruiseConfigDao(goConfigDao).initializeConfigFile();
fixture = new PipelineWithTwoStages(materialRepository, transactionTemplate, temporaryFolder);
fixture.usingDbHelper(dbHelper).usingConfigHelper(configFileEditor).onSetUp();
newCause = BuildCause.createWithEmptyModifications();
}
Aggregations