Search in sources :

Example 1 with StageStorage

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);
}
Also used : StageResourceImporter(com.thoughtworks.studios.shine.cruise.stage.details.StageResourceImporter) TestFailureSetup(com.thoughtworks.go.server.dao.sparql.TestFailureSetup) StageStorage(com.thoughtworks.studios.shine.cruise.stage.details.StageStorage) File(java.io.File) Before(org.junit.Before)

Example 2 with StageStorage

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();
}
Also used : StageStorage(com.thoughtworks.studios.shine.cruise.stage.details.StageStorage) File(java.io.File) InMemoryTempGraphFactory(com.thoughtworks.studios.shine.semweb.sesame.InMemoryTempGraphFactory) Before(org.junit.Before)

Aggregations

StageStorage (com.thoughtworks.studios.shine.cruise.stage.details.StageStorage)2 File (java.io.File)2 Before (org.junit.Before)2 TestFailureSetup (com.thoughtworks.go.server.dao.sparql.TestFailureSetup)1 StageResourceImporter (com.thoughtworks.studios.shine.cruise.stage.details.StageResourceImporter)1 InMemoryTempGraphFactory (com.thoughtworks.studios.shine.semweb.sesame.InMemoryTempGraphFactory)1