Skip to content

Instantly share code, notes, and snippets.

@stigkj
Last active November 12, 2015 08:37
Show Gist options
  • Save stigkj/eb794067e41fe11aca2e to your computer and use it in GitHub Desktop.
Save stigkj/eb794067e41fe11aca2e to your computer and use it in GitHub Desktop.
How to use Camel with Spock's PollingConditions
@Test
public void should_filter_out_messages_with_missing_durations() {
template.sendBodyAndHeaders("solr://<some solr server>", [someInputData(), someOtherInputData()], headers)
new PollingConditions(timeout: 10, initialDelay: 1.5, factor: 1.25).eventually {
assert solr.received.size() == 1
}
assert solr.received.first().body.contains(<some string>)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment