java.lang.Object
org.eclipse.microprofile.reactive.streams.operators.tck.ReactiveStreamsTck<E>
Type Parameters:
E - The type of the Reactive Streams engine.
Direct Known Subclasses:
ReactiveStreamsCdiTck

public abstract class ReactiveStreamsTck<E extends ReactiveStreamsEngine> extends Object
The Reactive Streams TCK.

A concrete class that extends this class is all that is needed to verify a ReactiveStreamsEngine against this TCK.

It produces a number of TestNG test classes via the TestNG Factory annotated allTests() method.

  • Constructor Details

    • ReactiveStreamsTck

      public ReactiveStreamsTck(org.reactivestreams.tck.TestEnvironment testEnvironment)
  • Method Details

    • createEngine

      protected abstract E createEngine()
      Override to provide the reactive streams engine.
    • createFactory

      protected ReactiveStreamsFactory createFactory()
      Create the reactive streams factory to use. By default, will use one backed by the ReactiveStreams static factory methods, that is, using the ServiceLoader to locate one.
    • shutdownEngine

      protected void shutdownEngine(E engine)
      Override to implement custom shutdown logic for the Reactive Streams engine.
    • isEnabled

      protected boolean isEnabled(Object test)
      Override this to disable/enable tests, useful for debugging one test at a time.
    • shutdownEngine

      @AfterSuite(alwaysRun=true) public void shutdownEngine()
    • createExecutorService

      protected ScheduledExecutorService createExecutorService()
      Override this to provide a different ScheduledExecutorService
    • shutdownExecutorService

      protected void shutdownExecutorService(ScheduledExecutorService executorService)
      Override this to customize the shutdown of a ScheduledExecutorService
    • allTests

      @Factory public Object[] allTests()