Skip to content

Instantly share code, notes, and snippets.

@christian-posta
Last active December 24, 2015 03:09
Show Gist options
  • Save christian-posta/6735957 to your computer and use it in GitHub Desktop.
Save christian-posta/6735957 to your computer and use it in GitHub Desktop.
context.getRouteDefinitions().get(0).adviceWith(context, new AdviceWithRouteBuilder() {
@Override
public void configure() throws Exception {
// mock sending to direct:foo and direct:bar and skip send to it
mockEndpointsAndSkip("direct:foo", "direct:bar");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment