use of org.mule.runtime.core.api.source.scheduler.PeriodicScheduler in project mule by mulesoft.
the class PeriodicSchedulerTestCase method factory.
private PeriodicScheduler factory(ScheduledFuture schedulerToReturn, MuleContext muleContext) {
PeriodicScheduler pollFactory = mock(PeriodicScheduler.class);
when(pollFactory.doSchedule(any(), any())).thenReturn(schedulerToReturn);
return pollFactory;
}
Aggregations