Skip to content

Add more fluent APIs to AssertSubscriber #1314

@hantsy

Description

@hantsy

I tried to use UniAssertSubscriber in test, but it is not powerful as reactor's StepVerifier.

I hope there are some fluent APIs added to UniAssertSubscriber like this to assert the items or exception directly.

assertItem(Matcher<T>)/assertNull()/assertEmpty()
consumeWith(Consumer<T>)

For Multi subscriber.

assertNextItem(Matcher<T>)
assertNextNItem(Long n, Matcher<List<T>> or  Matcher<T>...)
assertNextCount(Long)
consumeNextWith(Consumer<T>)
consumeNextNWith(Long n, Consumer<List<T>>)

// and send cancel signal and verify

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