Interface CompletableFirstStep
-
- All Superinterfaces:
CompletableLastStep
public interface CompletableFirstStep extends CompletableLastStep
Provides the ability to express expectations for the first step in aSubscriber
's lifecycle.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableLastStep
expectCancellable()
Declare an expectation thatCompletableSource.Subscriber.onSubscribe(Cancellable)
is the next signal.CompletableLastStep
expectCancellableConsumed(java.util.function.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 Detail
-
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
CompletableLastStep expectCancellableConsumed(java.util.function.Consumer<? super Cancellable> consumer)
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.
-
-