Search in sources :

Example 1 with TestFailureSetup

use of com.thoughtworks.go.server.dao.sparql.TestFailureSetup in project gocd by gocd.

the class StageResourceImporterTest method setup.

@Before
public void setup() throws Exception {
    dbHelper.onSetUp();
    configHelper.usingCruiseConfigDao(goConfigDao);
    configHelper.onSetUp();
    graphFactory = new InMemoryTempGraphFactory();
    importer = new StageResourceImporter("test/data/cruise/artifacts", xmlApiService, stageService, pipelineHistoryService, systemEnvironment);
    failureSetup = new TestFailureSetup(materialRepository, dbHelper, pipelineTimeline, configHelper, transactionTemplate);
}
Also used : TestFailureSetup(com.thoughtworks.go.server.dao.sparql.TestFailureSetup) InMemoryTempGraphFactory(com.thoughtworks.studios.shine.semweb.sesame.InMemoryTempGraphFactory) Before(org.junit.Before)

Example 2 with TestFailureSetup

use of com.thoughtworks.go.server.dao.sparql.TestFailureSetup 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)

Aggregations

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