assertMockEndpointsSatisfied();
}
public void testAdviceWithAB() throws Exception {
RouteDefinition route = context.getRouteDefinition("a");
route.adviceWith(context, new AdviceWithRouteBuilder() {
@Override
public void configure() throws Exception {
interceptSendToEndpoint("mock://a")
.skipSendToOriginalEndpoint()
.throwException(new IllegalArgumentException("Forced"));
}
});
route = context.getRouteDefinition("b");
route.adviceWith(context, new AdviceWithRouteBuilder() {
@Override
public void configure() throws Exception {
interceptSendToEndpoint("mock://b")
.skipSendToOriginalEndpoint()
.throwException(new IllegalArgumentException("Forced"));