assertMockEndpointsSatisfied();
}
@Test
public void testMultipleAdvice() throws Exception {
context.getRouteDefinition("RouteA").adviceWith(context, new AdviceWithRouteBuilder() {
@Override
public void configure() throws Exception {
interceptSendToEndpoint("mock:resultA").process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
throw new Exception("my exception");
}
});
}
});
context.getRouteDefinition("RouteB").adviceWith(context, new AdviceWithRouteBuilder() {
@Override
public void configure() throws Exception {
}
});