use of com.enonic.xp.impl.scheduler.CalendarServiceImpl in project xp by enonic.
the class SchedulerServiceImplTest method setUpNode.
@BeforeEach
protected void setUpNode() throws Exception {
super.setUpNode();
final AuditLogService auditLogService = Mockito.mock(AuditLogService.class);
final SchedulerConfig schedulerConfig = Mockito.mock(SchedulerConfig.class);
Mockito.when(schedulerConfig.auditlogEnabled()).thenReturn(Boolean.TRUE);
final ScheduleAuditLogSupportImpl auditLogSupport = new ScheduleAuditLogSupportImpl(schedulerConfig, new ScheduleAuditLogExecutorImpl(), auditLogService);
schedulerService = new SchedulerServiceImpl(indexService, repositoryService, nodeService, schedulerExecutorService, auditLogSupport);
adminContext().runWith(() -> schedulerService.initialize());
calendarService = new CalendarServiceImpl();
}
Aggregations