Uses of Class
io.smallrye.mutiny.helpers.test.AssertSubscriber
Packages that use AssertSubscriber
-
Uses of AssertSubscriber in io.smallrye.mutiny.helpers.test
Methods in io.smallrye.mutiny.helpers.test that return AssertSubscriberModifier and TypeMethodDescriptionAssertSubscriber.assertCompleted()Assert that the multi has completed.AssertSubscriber.assertFailedWith(Class<? extends Throwable> expectedTypeOfFailure) Assert that the multi has failed.AssertSubscriber.assertFailedWith(Class<? extends Throwable> expectedTypeOfFailure, String expectedFailureMessage) Assert that the multi has failed.AssertSubscriber.assertHasNotReceivedAnyItem()Assert that no item has been received yet.final AssertSubscriber<T> AssertSubscriber.assertItems(T... expected) Assert that a sequence of items has been received (in whole and in exact order).AssertSubscriber.assertLastItem(T expected) Asserts that the last received item is equal toexpected.AssertSubscriber.assertNotSubscribed()Assert that the multi has not been subscribed.AssertSubscriber.assertNotTerminated()Assert that the multi has not been terminated, i.e. did not received a failure or a completion event.AssertSubscriber.assertSubscribed()Assert that the multi has been subscribed.AssertSubscriber.assertTerminated()Assert that the multi has been terminated, i.e. received a failure or a completion event.AssertSubscriber.awaitCompletion()Awaits for a completion event.AssertSubscriber.awaitCompletion(Duration duration) Awaits for a completion event at mostduration.AssertSubscriber.awaitFailure()Awaits for a failure event.AssertSubscriber.awaitFailure(Duration duration) Awaits for a failure event.AssertSubscriber.awaitFailure(Consumer<Throwable> assertion) Awaits for a failure event and validate it.AssertSubscriber.awaitFailure(Consumer<Throwable> assertion, Duration duration) Awaits for a failure event and validate it.AssertSubscriber.awaitItems(int number) Awaits for the subscriber to receivenumberitems in total (including the ones received after calling this method).AssertSubscriber.awaitItems(int number, Duration duration) Awaits for the subscriber to receivenumberitems in total (including the ones received after calling this method).AssertSubscriber.awaitNextItem()Awaits for the next item.AssertSubscriber.awaitNextItem(Duration duration) Awaits for the next item.AssertSubscriber.awaitNextItems(int number) Awaits for the nextnumberitems.AssertSubscriber.awaitNextItems(int number, int request) Awaits for the nextnumberitems.AssertSubscriber.awaitNextItems(int number, int request, Duration duration) Awaits for the nextnumberitems.AssertSubscriber.awaitNextItems(int number, Duration duration) Awaits for the nextnumberitems.AssertSubscriber.awaitSubscription()Awaits for a subscription event (the subscriber receives aFlow.Subscriptionfrom the upstream.AssertSubscriber.awaitSubscription(Duration duration) Awaits for a subscription event (the subscriber receives aFlow.Subscriptionfrom the upstream.AssertSubscriber.cancel()Cancel the subscription.static <T> AssertSubscriber<T> AssertSubscriber.create()Creates a newAssertSubscriberwith 0 requested items and no upfront cancellation.static <T> AssertSubscriber<T> AssertSubscriber.create(long requested) Creates a newAssertSubscriberwith no upfront cancellation.static <T> AssertSubscriber<T> Creates a newAssertSubscriberwith 0 requested items and no upfront cancellation.static <T> AssertSubscriber<T> Creates a newAssertSubscriberwith no upfront cancellation.AssertSubscriber.request(long req) Request items.Run an action.