use of org.mule.runtime.core.api.management.stats.AllStatistics in project mule by mulesoft.
the class PipelineMessageNotificationTestCase method createMocks.
@Before
public void createMocks() throws Exception {
muleContext.dispose();
muleContext = mockContextWithServices();
when(muleContext.getStatistics()).thenReturn(new AllStatistics());
when(muleContext.getConfiguration()).thenReturn(new DefaultMuleConfiguration());
notificationFirer = ((MuleContextWithRegistries) muleContext).getRegistry().lookupObject(NotificationDispatcher.class);
when(muleContext.getDefaultErrorHandler(empty())).thenReturn(new ErrorHandlerFactory().createDefault(notificationFirer));
mockErrorTypeLocator();
when(muleContext.getTransformationService()).thenReturn(new ExtendedTransformationService(muleContext));
}
Aggregations