Open
Description
I would like to replace my call to waitAtMost(...).until by waitAtMost(...).untilAsserted.
My code looks something like:
final DataRecord record = waitAtMost(3, SECONDS).until(() -> fakeRepository.getRecords(), hasSize(1)).get(0);
I'd like to replace this by something like:
final DataRecord record = waitAtMost(3, SECONDS).untilAsserted(fakeRepository::getRecords, records -> assertThat(records).singleElement());
Unfortunately, this is not possible right now, since untilAsserted
has return type void
instead of T
, like until
does. My request is to return this value.
Metadata
Metadata
Assignees
Labels
No labels