Search in sources :

Example 1 with SchedulerController

use of org.mule.runtime.core.internal.connector.SchedulerController in project mule by mulesoft.

the class ClusterExtensionMessageSourceTestCase method before.

@Override
public void before() throws Exception {
    super.before();
    SchedulerController schedulerController = mock(SchedulerController.class);
    when(schedulerController.isPrimarySchedulingInstance()).thenReturn(false);
    ((DefaultMuleContext) muleContext).setSchedulerController(schedulerController);
}
Also used : DefaultMuleContext(org.mule.runtime.core.internal.context.DefaultMuleContext) SchedulerController(org.mule.runtime.core.internal.connector.SchedulerController)

Aggregations

SchedulerController (org.mule.runtime.core.internal.connector.SchedulerController)1 DefaultMuleContext (org.mule.runtime.core.internal.context.DefaultMuleContext)1