Interface CompletableFirstStep
- All Superinterfaces:
CompletableLastStep
Provides the ability to express expectations for the first step in a
Subscriber
's lifecycle.-
Method Summary
Modifier and TypeMethodDescriptionDeclare an expectation thatCompletableSource.Subscriber.onSubscribe(Cancellable)
is the next signal.expectCancellableConsumed
(Consumer<? super Cancellable> consumer) Declare an expectation that can be asserted when theCompletableSource.Subscriber.onSubscribe(Cancellable)
method is called.Methods inherited from interface io.servicetalk.concurrent.api.test.CompletableLastStep
expectComplete, expectError, expectError, expectErrorConsumed, expectErrorMatches, expectNoSignals, then, thenAwait, thenCancel
-
Method Details
-
expectCancellable
CompletableLastStep expectCancellable()Declare an expectation thatCompletableSource.Subscriber.onSubscribe(Cancellable)
is the next signal.- Returns:
- An object which allows for subsequent expectations to be defined.
-
expectCancellableConsumed
Declare an expectation that can be asserted when theCompletableSource.Subscriber.onSubscribe(Cancellable)
method is called.- Parameters:
consumer
- Consumes theCancellable
fromCompletableSource.Subscriber.onSubscribe(Cancellable)
.- Returns:
- An object which allows for subsequent expectations to be defined.
-