TestSingle
instead.@Deprecated public class LegacyTestSingle<T> extends Single<T> implements SingleSource.Subscriber<T>
Constructor and Description |
---|
LegacyTestSingle()
Deprecated.
|
LegacyTestSingle(boolean invokeListenerPostCancel)
Deprecated.
|
LegacyTestSingle(boolean invokeListenerPostCancel,
boolean cacheResults)
Deprecated.
|
LegacyTestSingle(Executor executor,
boolean invokeListenerPostCancel,
boolean cacheResults)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
handleSubscribe(SingleSource.Subscriber<? super T> subscriber)
Deprecated.
Handles a subscriber to this
Single . |
boolean |
isCancelled()
Deprecated.
|
void |
onError(java.lang.Throwable t)
Deprecated.
Failed terminal state.
|
void |
onSubscribe(Cancellable cancellable)
Deprecated.
Called when the associated
SingleSource is subscribed via SingleSource.subscribe(Subscriber) . |
void |
onSuccess(T result)
Deprecated.
Success terminal state.
|
LegacyTestSingle<T> |
verifyCancelled()
Deprecated.
|
LegacyTestSingle<T> |
verifyListenCalled()
Deprecated.
|
LegacyTestSingle<T> |
verifyListenCalled(int times)
Deprecated.
|
LegacyTestSingle<T> |
verifyListenNotCalled()
Deprecated.
|
LegacyTestSingle<T> |
verifyNotCancelled()
Deprecated.
|
afterCancel, afterFinally, afterFinally, afterFinally, afterOnError, afterOnSubscribe, afterOnSuccess, afterSubscriber, amb, amb, ambWith, anyOf, anyOf, beforeCancel, beforeFinally, beforeFinally, beforeFinally, beforeOnError, beforeOnSubscribe, beforeOnSuccess, beforeSubscriber, collectUnordered, collectUnordered, collectUnordered, collectUnordered, collectUnorderedDelayError, collectUnorderedDelayError, collectUnorderedDelayError, collectUnorderedDelayError, concat, concat, concat, defer, failed, flatMap, flatMapCompletable, flatMapPublisher, fromCallable, fromFuture, fromStage, fromSupplier, idleTimeout, idleTimeout, idleTimeout, idleTimeout, ignoreElement, liftAsync, liftSync, map, never, publishAndSubscribeOn, publishAndSubscribeOnOverride, publishOn, publishOnOverride, recoverWith, repeat, repeatWhen, retry, retryWhen, subscribe, subscribeInternal, subscribeOn, subscribeOnOverride, subscribeShareContext, succeeded, toCompletable, toCompletionStage, toFuture, toPublisher, whenCancel, whenFinally, whenFinally, whenFinally, whenOnError, whenOnSubscribe, whenOnSuccess, whenSubscriber
public LegacyTestSingle()
public LegacyTestSingle(boolean invokeListenerPostCancel)
public LegacyTestSingle(boolean invokeListenerPostCancel, boolean cacheResults)
public LegacyTestSingle(Executor executor, boolean invokeListenerPostCancel, boolean cacheResults)
public void handleSubscribe(SingleSource.Subscriber<? super T> subscriber)
Single
Single
.handleSubscribe
in class Single<T>
subscriber
- the subscriber.public void onSubscribe(Cancellable cancellable)
SingleSource.Subscriber
SingleSource
is subscribed via SingleSource.subscribe(Subscriber)
.onSubscribe
in interface SingleSource.Subscriber<T>
cancellable
- A Cancellable
that can be used to cancel the asynchronous computation for
this subscriber.public void onSuccess(@Nullable T result)
SingleSource.Subscriber
No further events will be sent.
onSuccess
in interface SingleSource.Subscriber<T>
result
- of the SingleSource
.public void onError(java.lang.Throwable t)
SingleSource.Subscriber
No further events will be sent.
onError
in interface SingleSource.Subscriber<T>
t
- the throwable signaled.public boolean isCancelled()
public LegacyTestSingle<T> verifyListenCalled()
public LegacyTestSingle<T> verifyListenCalled(int times)
public LegacyTestSingle<T> verifyListenNotCalled()
public LegacyTestSingle<T> verifyCancelled()
public LegacyTestSingle<T> verifyNotCancelled()