use of com.thoughtworks.studios.shine.cruise.stage.details.StageStorage in project gocd by gocd.
the class BackgroundStageLoaderIntegrationTest method setUp.
@Before
public void setUp() throws Exception {
dbHelper.onSetUp();
File tempFolder = temporaryFolder.newFolder("shine");
stageStorage = new StageStorage(tempFolder.getAbsolutePath());
stageStorage.clear();
stageFinder = stageService;
pipelineInstanceLoader = pipelineHistoryService;
StageResourceImporter importer = new StageResourceImporter("/artifacts", xmlApiService, stageFinder, pipelineInstanceLoader, systemEnvironment);
loader = new BackgroundStageLoader(null, importer, stageStorage, pipelineHistoryService, stageService, systemEnvironment);
configHelper.usingCruiseConfigDao(goConfigDao);
configHelper.onSetUp();
failureSetup = new TestFailureSetup(materialRepository, dbHelper, pipelineTimeline, configHelper, transactionTemplate);
}
use of com.thoughtworks.studios.shine.cruise.stage.details.StageStorage in project gocd by gocd.
the class StagesQueryTest method setUp.
@Before
public void setUp() throws Exception {
File tempFolder = temporaryFolder.newFolder("shine");
graphLoader = new StageStorage(tempFolder.getAbsolutePath());
graphLoader.clear();
graphFactory = new InMemoryTempGraphFactory();
}
Aggregations