public abstract class PublisherVerification<T> extends java.lang.Object
| Constructor and Description |
|---|
PublisherVerification(TestEnvironment env,
long publisherShutdownTimeoutMillis) |
public PublisherVerification(TestEnvironment env, long publisherShutdownTimeoutMillis)
public abstract org.reactivestreams.spi.Publisher<T> createPublisher(int elements)
public abstract org.reactivestreams.spi.Publisher<T> createCompletedStatePublisher()
completed state in order to run additional tests on it,
or null in order to skip them.public abstract org.reactivestreams.spi.Publisher<T> createErrorStatePublisher()
error state in order to run additional tests on it,
or null in order to skip them.public void createPublisher3MustProduceAStreamOfExactly3Elements() throws java.lang.Throwable
java.lang.Throwablepublic void publisherSubscribeWhenCompletedMustTriggerOnCompleteAndNotOnSubscribe() throws java.lang.Throwable
java.lang.Throwablepublic void publisherSubscribeWhenInErrorStateMustTriggerOnErrorAndNotOnSubscribe() throws java.lang.Throwable
java.lang.Throwablepublic void publisherSubscribeWhenInShutDownStateMustTriggerOnErrorAndNotOnSubscribe() throws java.lang.Throwable
java.lang.Throwablepublic void publisherSubscribeWhenActiveMustCallOnSubscribeFirst() throws java.lang.Throwable
java.lang.Throwablepublic void publisherSubscribeWhenActiveMustRejectDoubleSubscription() throws java.lang.Throwable
java.lang.Throwablepublic void subscriptionRequestMoreWhenCancelledMustIgnoreTheCall() throws java.lang.Throwable
java.lang.Throwablepublic void subscriptionRequestMoreMustResultInTheCorrectNumberOfProducedElements() throws java.lang.Throwable
java.lang.Throwablepublic void subscriptionRequestMoreMustThrowIfArgumentIsNonPositive() throws java.lang.Throwable
java.lang.Throwablepublic void subscriptionCancelWhenCancelledMustIgnoreCall() throws java.lang.Throwable
java.lang.Throwablepublic void onSubscriptionCancelThePublisherMustEventuallyCeaseToCallAnyMethodsOnTheSubscriber() throws java.lang.Throwable
java.lang.Throwablepublic void onSubscriptionCancelThePublisherMustEventuallyDropAllReferencesToTheSubscriber() throws java.lang.Throwable
java.lang.Throwablepublic void mustNotCallOnNextAfterHavingIssuedAnOnCompleteOrOnErrorCallOnASubscriber()
public void mustProduceTheSameElementsInTheSameSequenceForAllItsSubscribers() throws java.lang.Throwable
java.lang.Throwablepublic void mustSupportAPendingElementCountUpToLongMaxValue()
public void mustCallOnCompleteOnASubscriberAfterHavingProducedTheFinalStreamElementToIt() throws java.lang.Throwable
java.lang.Throwablepublic void mustStartProducingWithTheOldestStillAvailableElementForASubscriber()
public void mustCallOnErrorOnAllItsSubscribersIfItEncountersANonRecoverableError()
public void mustNotCallOnCompleteOrOnErrorMoreThanOncePerSubscriber()
public void activePublisherTest(int elements, org.reactivestreams.tck.PublisherVerification.PublisherTestRun<T> body) throws java.lang.Throwable
java.lang.Throwablepublic void completedPublisherTest(org.reactivestreams.tck.PublisherVerification.PublisherTestRun<T> body) throws java.lang.Throwable
java.lang.Throwablepublic void errorPublisherTest(org.reactivestreams.tck.PublisherVerification.PublisherTestRun<T> body) throws java.lang.Throwable
java.lang.Throwablepublic void potentiallyPendingTest(org.reactivestreams.spi.Publisher<T> pub, org.reactivestreams.tck.PublisherVerification.PublisherTestRun<T> body) throws java.lang.Throwable
java.lang.Throwable