Skip to content

Added overloaded expectNextMatch to match multiple elements #4024

@mipo256

Description

@mipo256

Currently, the StepVerifier has an expectNextMatch method. It is convenient to use in tests when we have an object that is too complex to instantiate, and we do not care about equals(), rather about some very specific details.

Unfortunately, expectNextMatch verifies only the single oNext(). It would be great to have an overloaded variant, something like expectNextMatch(Predicate predicate, Long n). This would check the next n onNext elements against the predicate.

If accepted, I can assist with implementation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions