Hello,

have a route:
from('direct:start').routeId(route1ID).to(direct:anotherRoute)
from('direct:anotherRoute').to('http://...').id('httpToID').unmarshall

Making test who calls route1ID route and will to replace httpToID route. How
to do this? Code below dont work :(

getCamelContext().getRouteDefinition('route1ID').adviceWith(getCamelContext(),
new AdviceWithRouteBuilder() {
            @Override
            public void configure() throws Exception {
                weaveById("httpToID").replace().to("mock:test");
            }
        });

tHx.




--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-set-mock-for-inner-route-tp5731085.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to