Class ReactiveStreamsTck<E extends ReactiveStreamsEngine>
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
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject[]allTests()protected abstract EOverride to provide the reactive streams engine.protected ScheduledExecutorServiceOverride this to provide a different ScheduledExecutorServiceprotected ReactiveStreamsFactoryCreate the reactive streams factory to use.protected booleanOverride this to disable/enable tests, useful for debugging one test at a time.voidprotected voidshutdownEngine(E engine) Override to implement custom shutdown logic for the Reactive Streams engine.protected voidshutdownExecutorService(ScheduledExecutorService executorService) Override this to customize the shutdown of a ScheduledExecutorService
-
Constructor Details
-
ReactiveStreamsTck
public ReactiveStreamsTck(org.reactivestreams.tck.TestEnvironment testEnvironment)
-
-
Method Details
-
createEngine
Override to provide the reactive streams engine. -
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
Override to implement custom shutdown logic for the Reactive Streams engine. -
isEnabled
Override this to disable/enable tests, useful for debugging one test at a time. -
shutdownEngine
@AfterSuite(alwaysRun=true) public void shutdownEngine() -
createExecutorService
Override this to provide a different ScheduledExecutorService -
shutdownExecutorService
Override this to customize the shutdown of a ScheduledExecutorService -
allTests
-