Search in sources :

Example 1 with PeriodicScheduler

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;
}
Also used : PeriodicScheduler(org.mule.runtime.core.api.source.scheduler.PeriodicScheduler)

Aggregations

PeriodicScheduler (org.mule.runtime.core.api.source.scheduler.PeriodicScheduler)1