Thanks for good hints.

I did only two steps configuration it works fine ;-)
1. stop all timer routes in init method
2. and by adviceWith I replaced the FROM of affected routes

@Before
public void init() throws Exception {
    context.stopRoute("myRouteId");
    RouteDefinition route = context.getRouteDefinition("myRouteId");
    route.adviceWith(context, new AdviceWithRouteBuilder() {
        @Override
        public void configure() throws Exception {
            replaceFromWith("direct:myRouteId");
        }
    });
}




--
View this message in context: 
http://camel.465427.n5.nabble.com/disable-timer-for-unit-tests-tp5727302p5727353.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to