Package org.mokai.impl.camel

Examples of org.mokai.impl.camel.AbstractCamelConnectorService$ConnectorProcessor


    Assert.assertEquals("test", processorService.getId());
  }

  @Test(expectedExceptions=IllegalArgumentException.class)
  public void shouldFailWithNullPreProcessingAction() throws Exception {
    AbstractCamelConnectorService processorService = new MockConnectorService("test", new MockProcessor(), resourceRegistry);
    processorService.addPreProcessingAction(null);
  }
View Full Code Here


  @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);
View Full Code Here

TOP

Related Classes of org.mokai.impl.camel.AbstractCamelConnectorService$ConnectorProcessor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.