use of org.mule.runtime.api.exception.ErrorTypeRepository in project mule by mulesoft.
the class AbstractExtensionMessageSourceTestCase method getStartUpRegistryObjects.
@Override
protected Map<String, Object> getStartUpRegistryObjects() {
ErrorTypeRepository errorTypeRepository = Mockito.mock(ErrorTypeRepository.class);
when(errorTypeRepository.getErrorType(FLOW_BACK_PRESSURE)).thenReturn(of(mock(ErrorType.class)));
Map<String, Object> registryObjects = new HashMap<>();
registryObjects.put("errorTypeRepository", errorTypeRepository);
return registryObjects;
}
Aggregations