Interface SingleFirstStep<T>
-
- Type Parameters:
T
- The type ofSingleSource.Subscriber
.
- All Superinterfaces:
SingleLastStep<T>
public interface SingleFirstStep<T> extends SingleLastStep<T>
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 SingleLastStep<T>
expectCancellable()
Declare an expectation thatSingleSource.Subscriber.onSubscribe(Cancellable)
is the next signal.SingleLastStep<T>
expectCancellableConsumed(java.util.function.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 Detail
-
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
SingleLastStep<T> expectCancellableConsumed(java.util.function.Consumer<? super Cancellable> consumer)
Declare an expectation that can be asserted when theSingleSource.Subscriber.onSubscribe(Cancellable)
method is called.- Parameters:
consumer
- Consumes theCancellable
fromSingleSource.Subscriber.onSubscribe(Cancellable)
.- Returns:
- An object which allows for subsequent expectations to be defined.
-
-