JavaHamcrest
JavaHamcrest copied to clipboard
Support a EventuallyMatcher
The EventuallyMatcher is a matcher that will evaluate another matcher repeatedly until it matches, or fail after some number of attempts. This is useful when waiting for results from a resource that may take time to return a result.
You might want to have a look at the concepts of checker and probe in https://github.com/jmock-developers/windowlicker, it sounds pretty similar
I would sugesst https://github.com/awaitility/awaitility for this.