Class FlowSubscriberBlackboxVerification<T>

java.lang.Object
org.reactivestreams.tck.WithHelperPublisher<T>
org.reactivestreams.tck.SubscriberBlackboxVerification<T>
org.reactivestreams.tck.flow.FlowSubscriberBlackboxVerification<T>
All Implemented Interfaces:
SubscriberBlackboxVerificationRules

public abstract class FlowSubscriberBlackboxVerification<T> extends SubscriberBlackboxVerification<T> implements SubscriberBlackboxVerificationRules
Provides tests for verifying Flow.Subscriber and Flow.Subscription specification rules, without any modifications to the tested implementation (also known as "Black Box" testing). This verification is NOT able to check many of the rules of the spec, and if you want more verification of your implementation you'll have to implement org.reactivestreams.tck.SubscriberWhiteboxVerification instead.
See Also:
  • Constructor Details

    • FlowSubscriberBlackboxVerification

      protected FlowSubscriberBlackboxVerification(TestEnvironment env)
  • Method Details

    • triggerRequest

      public final void triggerRequest(Subscriber<? super T> subscriber)
      Description copied from class: SubscriberBlackboxVerification
      Override this method if the Subscriber implementation you are verifying needs an external signal before it signals demand to its Publisher. By default this method does nothing.
      Overrides:
      triggerRequest in class SubscriberBlackboxVerification<T>
    • triggerFlowRequest

      public void triggerFlowRequest(Flow.Subscriber<? super T> subscriber)
      Override this method if the Flow.Subscriber implementation you are verifying needs an external signal before it signals demand to its Publisher. By default this method does nothing.
    • createSubscriber

      public final Subscriber<T> createSubscriber()
      Description copied from class: SubscriberBlackboxVerification
      This is the main method you must implement in your test incarnation. It must create a new Subscriber instance to be subjected to the testing logic.
      Specified by:
      createSubscriber in class SubscriberBlackboxVerification<T>
    • createFlowSubscriber

      public abstract Flow.Subscriber<T> createFlowSubscriber()
      This is the main method you must implement in your test incarnation. It must create a new Flow.Subscriber instance to be subjected to the testing logic.