Hi , I have a route with OnException, when I try to create unit test for the route it actually faliling and saying it does not find any route
java.lang.IllegalArgumentException: There are no outputs which matches: ProcessorDefinition in the route: Route[[From[activemq:queue:dispatch]] -> [OnException[[class bbc.syndicationmanager.dispatcher.RestClient500SeriesException] -> [process[bbc.syndicationmanager.dispatcher.Dispatch500ErrorProcessor@7dc8f91e], process[bbc.syndicationmanager.dispatcher.ClientProcessor@5d0e8647]]] my routes are below. onException(RestClient500SeriesException.class) .maximumRedeliveries(retries).redeliveryDelay(retryDelay) .process(dispatch500ErrorProcessor) .end() .routeId( Constants.ROUTE_ID_DISPATCHER_DISPATCH_FAILURE_500_DEAL); from(dispatchEndpoint).process(clientProcessor).routeId( Constants.ROUTE_ID_DISPATCHER_DISPATCH_DEAL); And the unit test I written as follows context.addComponent(Constants.COMPONENT_ACTIVEMQ, jms); context.addRoutes(routeDispatchDeal); RouteDefinition routeDef = context.getRouteDefinition(Constants.ROUTE_ID_DISPATCHER_DISPATCH_DEAL); assertNotNull(routeDef); routeDef.adviceWith(context, new AdviceWithRouteBuilder() { @Override public void configure() throws Exception { weaveByType(ProcessorDefinition.class).selectFirst().replace().process(clientProcessor); } }); I am using camel 2.9.1 Active MQ 4.5.1 Java 1.6 Regards Sri -- View this message in context: http://camel.465427.n5.nabble.com/Unit-test-failing-onException-clause-tp5717350.html Sent from the Camel - Users mailing list archive at Nabble.com.