Reputation: 640
In Java, we have the Awaitility class, in which we can wait for a boolean returning method to return true or false.
How can we do this for a void method?
Upvotes: 8
Views: 4580
Reputation: 17828
await().untilAsserted(() -> someVoidMethod());
Upvotes: 17