T - the type of values that the subscriber containspublic static interface StepVerifier.FirstStep<T> extends StepVerifier.Step<T>
Subscription as
first signal.
If StepVerifier.FirstStep expectations are not used, the produced
StepVerifier keeps a first expectation that will be checking if
the first signal is a
Subscription.
| Modifier and Type | Method and Description |
|---|---|
StepVerifier.Step<T> |
expectFusion()
Expect the source
Publisher to run with Reactor Fusion flow
optimization. |
StepVerifier.Step<T> |
expectFusion(int requested)
Expect the source
Publisher to run the requested Reactor Fusion mode
from any of these modes :
Fuseable.NONE, Fuseable.SYNC, Fuseable.ASYNC,
Fuseable.ANY, Fuseable.THREAD_BARRIER. |
StepVerifier.Step<T> |
expectFusion(int requested,
int expected)
Expect the source
Publisher to run with Reactor Fusion flow
optimization. |
StepVerifier.FirstStep<T> |
expectNoEvent(Duration duration)
Deprecated.
should probably always first use
expectSubscription() or equivalent |
StepVerifier.Step<T> |
expectNoFusionSupport()
Expect the source
Publisher to NOT run with Reactor Fusion flow
optimization. |
StepVerifier.Step<T> |
expectSubscription()
Expect a
Subscription. |
StepVerifier.Step<T> |
expectSubscriptionMatches(Predicate<? super Subscription> predicate)
Expect a
Subscription and evaluate with the given predicate. |
as, assertNext, consumeNextWith, consumeRecordedWith, consumeSubscriptionWith, expectAccessibleContext, expectNext, expectNext, expectNext, expectNext, expectNext, expectNext, expectNext, expectNextCount, expectNextMatches, expectNextSequence, expectNoAccessibleContext, expectRecordedMatches, recordWith, then, thenAwait, thenAwait, thenConsumeWhile, thenConsumeWhile, thenRequestconsumeErrorWith, expectComplete, expectError, expectError, expectErrorMatches, expectErrorMessage, expectErrorSatisfies, expectTimeout, thenCancel, verifyComplete, verifyError, verifyError, verifyErrorMatches, verifyErrorMessage, verifyErrorSatisfies, verifyTimeoutStepVerifier.Step<T> expectFusion()
Publisher to run with Reactor Fusion flow
optimization. It will be requesting Fuseable.ANY fusion mode.FuseableStepVerifier.Step<T> expectFusion(int requested)
Publisher to run the requested Reactor Fusion mode
from any of these modes :
Fuseable.NONE, Fuseable.SYNC, Fuseable.ASYNC,
Fuseable.ANY, Fuseable.THREAD_BARRIER.requested - the requested and expected fusion modeFuseableStepVerifier.Step<T> expectFusion(int requested, int expected)
Publisher to run with Reactor Fusion flow
optimization.
Expect the source Publisher to run the requested Reactor Fusion mode
from any of these modes :
Fuseable.NONE, Fuseable.SYNC, Fuseable.ASYNC,
Fuseable.ANY, Fuseable.THREAD_BARRIER.requested - the requested fusion modeexpected - the expected fusion modeFuseableStepVerifier.Step<T> expectNoFusionSupport()
Publisher to NOT run with Reactor Fusion flow
optimization. It will check if publisher is Fuseable or
subscription is a Fuseable.QueueSubscription.Fuseable@Deprecated StepVerifier.FirstStep<T> expectNoEvent(Duration duration)
expectSubscription() or equivalentDuration. If virtual time is used, this duration
is verified using the virtual clock.
Note that you should only use this method as the first expectation if you
actually don't expect a subscription to happen. Use
expectSubscription() combined with StepVerifier.Step.expectNoEvent(Duration)
to work around that.
Also avoid using this method at the end of the set of expectations:
prefer StepVerifier.LastStep.expectTimeout(Duration) rather than expectNoEvent(...).thenCancel().
expectNoEvent in interface StepVerifier.Step<T>duration - the duration for which to observe no event has been receivedSubscriberStepVerifier.Step<T> expectSubscription()
Subscription.
Effectively behave as the default implicit Subscription expectation.Subscriber.onSubscribe(Subscription)StepVerifier.Step<T> expectSubscriptionMatches(Predicate<? super Subscription> predicate)
Subscription and evaluate with the given predicate.predicate - the predicate to test on the received SubscriptionSubscriber.onSubscribe(Subscription)