Skip to content

Support for doesNotMatch(Predicate) #3497

@ununhexium

Description

@ununhexium

Feature summary

AbstractCharSequenceAssert#matches(CharSequence)

and

AbstractAssert#matches(Predicate)

exists but its counterpart doesNotMatch only has

AbstractCharSequenceAssert#doesNotMatch(CharSequence)

and doesn't have

AbstractAssert#doesNotMatch(Predicate)

Example

assertThat(actualString)
    .matches(it -> it.startsWith("foo"))
    .doesNotMatch(it -> it.endsWith("bar")); // nope, not available

May I add it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions