Search in sources :

Example 1 with PipelineInstanceLoader

use of com.thoughtworks.go.server.service.PipelineInstanceLoader in project gocd by gocd.

the class BackgroundStageLoaderTest method setup.

@Before
public void setup() {
    stageFeedsReader = mock(StageAtomFeedsReader.class);
    pipelineInstanceLoader = mock(PipelineInstanceLoader.class);
    systemEnvironment = mock(SystemEnvironment.class);
    backgroundStageLoader = new BackgroundStageLoader(stageFeedsReader, mock(StageResourceImporter.class), mock(StageStorage.class), pipelineInstanceLoader, mock(StageService.class), systemEnvironment);
    listener = new BackgroundStageLoaderStageStatusListener(backgroundStageLoader, systemEnvironment);
    stage = new Stage();
    jobInstances = mock(JobInstances.class);
}
Also used : SystemEnvironment(com.thoughtworks.go.util.SystemEnvironment) StageAtomFeedsReader(com.thoughtworks.studios.shine.cruise.stage.feeds.StageAtomFeedsReader) PipelineInstanceLoader(com.thoughtworks.go.server.service.PipelineInstanceLoader) Stage(com.thoughtworks.go.domain.Stage) JobInstances(com.thoughtworks.go.domain.JobInstances) Before(org.junit.Before)

Aggregations

JobInstances (com.thoughtworks.go.domain.JobInstances)1 Stage (com.thoughtworks.go.domain.Stage)1 PipelineInstanceLoader (com.thoughtworks.go.server.service.PipelineInstanceLoader)1 SystemEnvironment (com.thoughtworks.go.util.SystemEnvironment)1 StageAtomFeedsReader (com.thoughtworks.studios.shine.cruise.stage.feeds.StageAtomFeedsReader)1 Before (org.junit.Before)1