Hi, tried to use this feature for testing - excellently like advised - it
still did not skip intercepted endpoint.

Camel 2.10.4

What I am doing wrong? The first endpoint changed and worked;
In the log I see trying to post message to localhost.
And test fell down with exception.
I simply want to replace last endpoint to the other one.

code 

        context.getRouteDefinitions().get(0).adviceWith(context, new
AdviceWithRouteBuilder() {
            @Override
            public void configure() throws Exception {               
                replaceFromWith("direct:start");
                interceptSendToEndpoint(ReceiverBridge.TO_ENDPOINT)
                .skipSendToOriginalEndpoint()
                .to("mock:result");
            }
        });



--
View this message in context: 
http://camel.465427.n5.nabble.com/InterceptSendToEndpoint-Http-Component-tp3296620p5730970.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to