camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (CAMEL-4486) Exceptions are not propagated to the parent route when endpoint cannot be resolved in the RoutingSlip EIP
Date Sun, 25 Sep 2011 07:59:26 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-4486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen reassigned CAMEL-4486:
----------------------------------

    Assignee: Claus Ibsen

> Exceptions are not propagated to the parent route when endpoint cannot be resolved in
the RoutingSlip EIP
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4486
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4486
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>            Reporter: Sergey Zhemzhitsky
>            Assignee: Claus Ibsen
>
> Here is the unit test to reproduce the issue
> {code}
> package org.test;
> import org.apache.camel.builder.RouteBuilder;
> import org.apache.camel.component.mock.MockEndpoint;
> import org.apache.camel.test.junit4.CamelTestSupport;
> import org.junit.Test;
> public class RecipientListTest extends CamelTestSupport {
>     public static class Router {
>         public String findEndpoint() {
>             return "unresolved://endpoint";
>         }
>     }
>     @Test
>     public void recipientList() throws Exception {
>         MockEndpoint endpoint = getMockEndpoint("mock://error");
>         endpoint.expectedMessageCount(1);
>         sendBody("direct://parent", "Hello World!");
>         assertMockEndpointsSatisfied();
>     }
>     @Override
>     protected RouteBuilder createRouteBuilder() throws Exception {
>         return new RouteBuilder() {
>             @Override
>             public void configure() throws Exception {
>                 from("direct://parent")
>                     .onException(Throwable.class)
>                         .to("mock://error")
>                     .end()
>                     .to("direct://child");
>                 from("direct://child")
>                     .errorHandler(noErrorHandler())
>                     .routingSlip(bean(Router.class));
>             }
>         };
>     }
> }
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message