Skip to content

Add satisfiesAnyOf to object assertions #1304

@joel-costigliola

Description

@joel-costigliola

Summary

This is a way to check that an object satisfies one of the given assertions requirements expressed as Consumers

Example

assertThat("foo").satisfiesAnyOf(actual -> assertThat(actual).contains("foo"),
                                 actual -> assertThat(actual).isEmpty());

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions