Last active
November 12, 2015 08:37
-
-
Save stigkj/eb794067e41fe11aca2e to your computer and use it in GitHub Desktop.
How to use Camel with Spock's PollingConditions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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