Thanks for the answer ! I missed that box ! I got a second problem now.. My application fail in the testMethod() onthis line : context.getRouteDefinitions().get(0).adviceWith(context, new AdviceWithRouteBuilder() {
I get this error : org.apache.camel.FailedToCreateRouteException: Failed to create route route1 at: >>> To[http4:google.com] <<< in route: Route[[From[timer:myTimer?delay=1000&period=500]] -> [SetHea... because of Failed to resolve endpoint: http4://google.com due to: null Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: http4://google.com due to: null Debugging context, I can see that my context does have the routes Route[[From[timer:myTimer?delay=1000&period=500]] -> [SetHeader[CamelHttpQuery, {...}], To[http4:google.com], To[seda:myQueue]]] context.getEndpoints() is empty. Am I still missing something ? Thank you! -- View this message in context: http://camel.465427.n5.nabble.com/Intercepting-message-for-testing-not-working-tp5723257p5723305.html Sent from the Camel - Users mailing list archive at Nabble.com.