use of com.thoughtworks.go.server.dao.sparql.ShineDao in project gocd by gocd.
the class StageNotificationServiceTest method setUp.
@Before
public void setUp() {
pipelineService = mock(PipelineService.class);
userService = mock(UserService.class);
systemEnvironment = mock(SystemEnvironment.class);
stageService = mock(StageService.class);
inMemoryEmailNotificationTopic = new InMemoryEmailNotificationTopic();
serverConfigService = mock(ServerConfigService.class);
shineDao = mock(ShineDao.class);
stageNotificationService = new StageNotificationService(pipelineService, userService, inMemoryEmailNotificationTopic, systemEnvironment, stageService, serverConfigService, shineDao);
stageIdentifier = new StageIdentifier("go", 1, "go-1", "dev", "2");
instanceFactory = new InstanceFactory();
}
use of com.thoughtworks.go.server.dao.sparql.ShineDao in project gocd by gocd.
the class FailureServiceTest method setUp.
@Before
public void setUp() {
shineDao = mock(ShineDao.class);
securityService = mock(SecurityService.class);
stageFinder = mock(StageFinder.class);
failureService = new FailureService(securityService, shineDao, stageFinder);
username = new Username(new CaseInsensitiveString("foo"));
jobIdentifier = new JobIdentifier(new StageIdentifier("pipeline", 10, "stage", "5"), "job");
result = new HttpLocalizedOperationResult();
}
use of com.thoughtworks.go.server.dao.sparql.ShineDao in project gocd by gocd.
the class StageNotificationServiceIntegrationTest method setUp.
@Before
public void setUp() throws Exception {
stageService = mock(StageService.class);
shineDao = mock(ShineDao.class);
stageNotificationService = new StageNotificationService(pipelineService, userService, inMemoryEmailNotificationTopic, systemEnvironment, stageService, serverConfigService, shineDao);
stageNotificationListener = new StageNotificationListener(stageNotificationService, goConfigService, stageResultTopic);
dbHelper.onSetUp();
configFileHelper.onSetUp();
configFileHelper.usingEmptyConfigFileWithLicenseAllowsUnlimitedAgents();
configFileHelper.usingCruiseConfigDao(goConfigDao);
pipelineFixture = new PipelineWithTwoStages(materialRepository, transactionTemplate, temporaryFolder);
pipelineFixture.usingConfigHelper(configFileHelper).usingDbHelper(dbHelper).onSetUp();
configFileHelper.enableSecurity();
inMemoryEmailNotificationTopic = new InMemoryEmailNotificationTopic();
stageNotificationService.setEmailNotificationTopic(inMemoryEmailNotificationTopic);
}
Aggregations