Skip to content

Instantly share code, notes, and snippets.

@christian-posta
Created September 27, 2013 22:10
Show Gist options
  • Save christian-posta/6735931 to your computer and use it in GitHub Desktop.
Save christian-posta/6735931 to your computer and use it in GitHub Desktop.
MockEndpoint resultEndpoint = context.resolveEndpoint("mock:foo", MockEndpoint.class);
resultEndpoint.setAssertPeriod(5000);
resultEndpoint.expectedMessageCount(2);
// send some messages
...
// now lets assert that the mock:foo endpoint received 2 messages
resultEndpoint.assertIsSatisfied();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment