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 |
---|---|
default StepVerifier.FirstStep<T> |
enableConditionalSupport(Predicate<? super T> tryOnNextPredicate)
Provide a
Predicate that will turn this StepVerifier's subscribers into
Fuseable.ConditionalSubscriber and drive the Fuseable.ConditionalSubscriber.tryOnNext(Object)
behavior of these subscribers. |
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.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, expectNoEvent, expectRecordedMatches, recordWith, then, thenAwait, thenAwait, thenConsumeWhile, thenConsumeWhile, thenRequest
consumeErrorWith, expectComplete, expectError, expectError, expectErrorMatches, expectErrorMessage, expectErrorSatisfies, expectTimeout, thenCancel, verifyComplete, verifyError, verifyError, verifyErrorMatches, verifyErrorMessage, verifyErrorSatisfies, verifyTimeout
default StepVerifier.FirstStep<T> enableConditionalSupport(@Nullable Predicate<? super T> tryOnNextPredicate)
Predicate
that will turn this StepVerifier's subscribers into
Fuseable.ConditionalSubscriber
and drive the Fuseable.ConditionalSubscriber.tryOnNext(Object)
behavior of these subscribers. Set to null
to deactivate (the default).tryOnNextPredicate
- the Predicate
to use for conditional tryOnNext pathStepVerifier.verify()
callStepVerifier.Step<T> expectFusion()
Publisher
to run with Reactor Fusion flow
optimization. It will be requesting Fuseable.ANY
fusion mode.Fuseable
StepVerifier.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 modeFuseable
StepVerifier.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 modeFuseable
StepVerifier.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
StepVerifier.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 Subscription
Subscriber.onSubscribe(Subscription)