Search in sources :

Example 1 with JobScheduleStrategies

use of org.graylog.scheduler.JobScheduleStrategies in project graylog2-server by Graylog2.

the class EventProcessorExecutionJobTest method setUp.

@Before
public void setUp() {
    clock = new JobSchedulerTestClock(DateTime.parse("2019-01-01T00:00:00.000Z"));
    jobScheduleStrategies = new JobScheduleStrategies(clock);
    when(eventsConfigurationProvider.get()).thenReturn(EventsConfiguration.builder().build());
}
Also used : JobSchedulerTestClock(org.graylog.events.JobSchedulerTestClock) JobScheduleStrategies(org.graylog.scheduler.JobScheduleStrategies) Before(org.junit.Before)

Aggregations

JobSchedulerTestClock (org.graylog.events.JobSchedulerTestClock)1 JobScheduleStrategies (org.graylog.scheduler.JobScheduleStrategies)1 Before (org.junit.Before)1