10000 Feature request: return supplier value in untilAsserted · Issue #295 · awaitility/awaitility · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Feature request: return supplier value in untilAsserted #295
Open
@maikelsteneker

Description

@maikelsteneker

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0