Interface SingleFirstStep<T>
- Type Parameters:
T- The type ofSingleSource.Subscriber.
- All Superinterfaces:
SingleLastStep<T>
Provides the ability to express expectations for the first step in a
Subscriber's lifecycle.-
Method Summary
Modifier and TypeMethodDescriptionDeclare an expectation thatSingleSource.Subscriber.onSubscribe(Cancellable)is the next signal.expectCancellableConsumed(Consumer<? super Cancellable> consumer) Declare an expectation that can be asserted when theSingleSource.Subscriber.onSubscribe(Cancellable)method is called.Methods inherited from interface io.servicetalk.concurrent.api.test.SingleLastStep
expectError, expectError, expectErrorConsumed, expectErrorMatches, expectNoSignals, expectSuccess, expectSuccess, expectSuccessConsumed, expectSuccessMatches, then, thenAwait, thenCancel
-
Method Details
-
expectCancellable
SingleLastStep<T> expectCancellable()Declare an expectation thatSingleSource.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 theSingleSource.Subscriber.onSubscribe(Cancellable)method is called.- Parameters:
consumer- Consumes theCancellablefromSingleSource.Subscriber.onSubscribe(Cancellable).- Returns:
- An object which allows for subsequent expectations to be defined.
-