use of com.thoughtworks.go.i18n.Localizer in project gocd by gocd.
the class ScheduleServiceTest method createMocks.
private void createMocks() {
jobInstanceService = mock(JobInstanceService.class);
goConfigService = mock(GoConfigService.class);
environmentConfigService = mock(EnvironmentConfigService.class);
serverHealthService = mock(ServerHealthService.class);
final TestTransactionSynchronizationManager synchronizationManager = new TestTransactionSynchronizationManager();
schedulingChecker = mock(SchedulingCheckerService.class);
pipelineScheduleQueue = mock(PipelineScheduleQueue.class);
consoleActivityMonitor = mock(ConsoleActivityMonitor.class);
pipelinePauseService = mock(PipelinePauseService.class);
stageService = mock(StageService.class);
securityService = mock(SecurityService.class);
pipelineService = mock(PipelineService.class);
localizer = mock(Localizer.class);
timeProvider = new TimeProvider();
schedulingPerformanceLogger = mock(SchedulingPerformanceLogger.class);
elasticProfileService = mock(ElasticProfileService.class);
stageOrderService = mock(StageOrderService.class);
pipelineLockService = mock(PipelineLockService.class);
service = new ScheduleService(goConfigService, pipelineService, stageService, schedulingChecker, mock(PipelineDao.class), mock(StageDao.class), stageOrderService, securityService, pipelineScheduleQueue, jobInstanceService, mock(JobInstanceDao.class), mock(AgentAssignment.class), environmentConfigService, pipelineLockService, serverHealthService, new TestTransactionTemplate(synchronizationManager), mock(AgentService.class), synchronizationManager, timeProvider, consoleActivityMonitor, pipelinePauseService, instanceFactory, schedulingPerformanceLogger, elasticProfileService);
}
Aggregations