Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more fluent APIs to AssertSubscriber #1314

Open
hantsy opened this issue Jul 10, 2023 · 0 comments
Open

Add more fluent APIs to AssertSubscriber #1314

hantsy opened this issue Jul 10, 2023 · 0 comments

Comments

@hantsy
Copy link

hantsy commented Jul 10, 2023

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
@cescoffier cescoffier changed the title Add more fluet APIs to AssertSubscriber Add more fluent APIs to AssertSubscriber Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant