Skip to content

Report all failing conditions when using satisfies(allOf(Condition...)) #3537

Description

@joel-costigliola

Feature summary

See https://stackoverflow.com/questions/78745304/assertj-how-to-know-which-conditions-failed-when-using-allof/78747459#78747459

Example

Condition<String> condition1 = new Condition<String>(text -> text != null, "Input not null");
Condition<String> condition2 = new Condition<String>(text -> text.equalsIgnoreCase("abc"), "Input not matching");
assertThat(someString).satisfies(allOf(condition1, condition2));

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Sponsor
    SponsoredKunjungi sekarang
    Promo