use of com.enonic.xp.impl.task.TaskServiceImpl in project xp by enonic.
the class AbstractContentSynchronizerTest method setupTaskService.
private void setupTaskService() {
final Bundle bundle = OsgiSupportMock.mockBundle();
when(bundle.getSymbolicName()).thenReturn("testBundle");
final LocalTaskManagerImpl taskMan = new LocalTaskManagerImpl(Runnable::run, new TaskManagerCleanupSchedulerMock(), event -> {
});
taskMan.activate();
NamedTaskFactory namedTaskFactory = mock(NamedTaskFactory.class);
this.taskService = new TaskServiceImpl(taskMan, namedTaskFactory);
}
Aggregations