@Test
public void testProcessorException() throws Exception {
MockEndpoint outboundEndpoint = getProcessedMessagesEndpoint(0);
MockEndpoint failedEndpoint = getFailedMessagesEndpoint(1);
AbstractCamelConnectorService processorService = new MockConnectorService("test", new Processor() {
@Override
public void process(Message message) {
throw new NullPointerException();
}
@Override
public boolean supports(Message message) {
return true;
}
}, resourceRegistry);
processorService.start();
simulateMessage(new Message(), "activemq:mokai-test");
failedEndpoint.assertIsSatisfied(DEFAULT_TIMEOUT);
outboundEndpoint.assertIsSatisfied(DEFAULT_TIMEOUT);