I'm running the test via junit4. My test class extends CamelTestSupport. Below is the test itself, if that helps.
Thanks! -john @Test public void testIssue() throws Exception { RouteDefinition testRoute = context.getRouteDefinition("TestRoute"); testRoute.adviceWith(context, new RouteBuilder() { @Override public void configure() throws Exception { interceptSendToEndpoint("seda:*") .skipSendToOriginalEndpoint() .process(new Processor() { public void process(Exchange exchange) throws Exception { throw new Exception("Forced"); } }); } }); RouteDefinition smtpRoute = context.getRouteDefinition("smtpRoute"); smtpRoute.adviceWith(context, new RouteBuilder() { @Override public void configure() throws Exception { interceptSendToEndpoint("smtp*") .skipSendToOriginalEndpoint() .to("mock:smtp"); } }); getMockEndpoint("mock:smtp").expectedMessageCount(1); RouteDefinition pollRoute = context.getRouteDefinition("pollRoute"); context.stopRoute(pollRoute.getId()); template.sendBody("direct:start", "Hello World"); assertMockEndpointsSatisfied(); } -- View this message in context: http://camel.465427.n5.nabble.com/errorHandler-when-stopping-routes-in-test-tp3335015p3336443.html Sent from the Camel - Users mailing list archive at Nabble.com.