Search in sources :

Example 1 with PipelineWithTwoStages

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

the class AgentAssignmentTest method setUp.

@Before
public void setUp() throws Exception {
    configHelper = new GoConfigFileHelper();
    fixture = new PipelineWithTwoStages(materialRepository, transactionTemplate);
    fixture.usingConfigHelper(configHelper).usingDbHelper(dbHelper).onSetUp();
    agentAssignment.clear();
}
Also used : PipelineWithTwoStages(com.thoughtworks.go.fixture.PipelineWithTwoStages) GoConfigFileHelper(com.thoughtworks.go.util.GoConfigFileHelper) Before(org.junit.Before)

Example 2 with PipelineWithTwoStages

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

the class RestfulServiceTest method setUp.

@Before
public void setUp() throws Exception {
    fixture = new PipelineWithTwoStages(materialRepository, transactionTemplate);
    configHelper = new GoConfigFileHelper().usingCruiseConfigDao(cruiseConfigDao);
    configHelper.onSetUp();
    dbHelper.onSetUp();
    fixture.usingThreeJobs();
    fixture.usingConfigHelper(configHelper).usingDbHelper(dbHelper).onSetUp();
}
Also used : PipelineWithTwoStages(com.thoughtworks.go.fixture.PipelineWithTwoStages) GoConfigFileHelper(com.thoughtworks.go.util.GoConfigFileHelper) Before(org.junit.Before)

Example 3 with PipelineWithTwoStages

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

the class ScheduleServiceCachedIntegrationTest method setUp.

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

Example 4 with PipelineWithTwoStages

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

the class ScheduleServiceStageTriggerTest method setUp.

@Before
public void setUp() throws Exception {
    preCondition = new PipelineWithTwoStages(materialRepository, transactionTemplate);
    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 5 with PipelineWithTwoStages

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

the class ScheduleServiceSecurityTest method setUp.

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

Aggregations

PipelineWithTwoStages (com.thoughtworks.go.fixture.PipelineWithTwoStages)28 Before (org.junit.Before)22 GoConfigFileHelper (com.thoughtworks.go.util.GoConfigFileHelper)10 SvnCommand (com.thoughtworks.go.domain.materials.svn.SvnCommand)3 SchedulerFixture (com.thoughtworks.go.fixture.SchedulerFixture)2 Test (org.junit.Test)2 MockHttpServletResponse (org.springframework.mock.web.MockHttpServletResponse)2 Cloner (com.rits.cloning.Cloner)1 AgentConfig (com.thoughtworks.go.config.AgentConfig)1 ArtifactsDiskIsFull (com.thoughtworks.go.fixture.ArtifactsDiskIsFull)1 PipelineWithMultipleStages (com.thoughtworks.go.fixture.PipelineWithMultipleStages)1 ShineDao (com.thoughtworks.go.server.dao.sparql.ShineDao)1 Username (com.thoughtworks.go.server.domain.Username)1 InMemoryEmailNotificationTopic (com.thoughtworks.go.server.messaging.InMemoryEmailNotificationTopic)1 StageNotificationListener (com.thoughtworks.go.server.messaging.StageNotificationListener)1 HttpLocalizedOperationResult (com.thoughtworks.go.server.service.result.HttpLocalizedOperationResult)1 AgentStub (com.thoughtworks.go.server.websocket.AgentStub)1 SystemEnvironment (com.thoughtworks.go.util.SystemEnvironment)1 MockHttpServletRequest (org.springframework.mock.web.MockHttpServletRequest)1