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);
}
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);
}
Aggregations