Class UniAssertSubscriber<T>

  • Type Parameters:
    T - the type of the items
    All Implemented Interfaces:
    UniSubscriber<T>

    public class UniAssertSubscriber<T>
    extends java.lang.Object
    implements UniSubscriber<T>
    A Uni UniSubscriber for testing purposes that comes with useful assertion helpers.
    • Constructor Detail

      • UniAssertSubscriber

        public UniAssertSubscriber​(boolean cancelled)
        Create a new UniAssertSubscriber.
        Parameters:
        cancelled - true when the subscription shall be cancelled upfront, false otherwise
      • UniAssertSubscriber

        public UniAssertSubscriber()
        Create a new UniAssertSubscriber with no upfront cancellation.