Skip to content

Consider making the semantics of extracting more similar to having #533

Open
@grodin

Description

@grodin

One thing worth exploring would be to add in addition to/replace extracting with a version of eachHaving that more directly mirrors having
ex:

assertThat(allUsers).eachHaving(User::name).isEqualTo(listOf("Alice", "Bob", "Eve"))

assertThat(allUsers).eachHaving("name") { it.name }.isEqualTo(listOf("Alice", "Bob", "Eve"))

Originally posted by @evant in #521 (comment)

I thought this was worth keeping around as a separate issue.

I'm keen to tackle it so opening the issue is as much to help me remember as anything!

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