TestCompletable
instead.@Deprecated public class LegacyTestCompletable extends Completable implements CompletableSource.Subscriber
Constructor and Description |
---|
LegacyTestCompletable()
Deprecated.
|
LegacyTestCompletable(boolean invokeListenerPostCancel,
boolean deferOnSubscribe)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
handleSubscribe(CompletableSource.Subscriber subscriber)
Deprecated.
Handles a subscriber to this
Completable . |
boolean |
isCancelled()
Deprecated.
|
void |
onComplete()
Deprecated.
Success terminal state.
|
void |
onError(java.lang.Throwable t)
Deprecated.
Failed terminal state.
|
void |
onSubscribe(Cancellable cancellable)
Deprecated.
Called when the associated
CompletableSource is subscribed via
CompletableSource.subscribe(Subscriber) . |
void |
sendOnSubscribe()
Deprecated.
|
LegacyTestCompletable |
verifyCancelled()
Deprecated.
|
LegacyTestCompletable |
verifyListenCalled()
Deprecated.
|
LegacyTestCompletable |
verifyListenNotCalled()
Deprecated.
|
LegacyTestCompletable |
verifyNotCancelled()
Deprecated.
|
afterCancel, afterFinally, afterFinally, afterOnComplete, afterOnError, afterOnSubscribe, afterSubscriber, amb, amb, ambWith, anyOf, anyOf, beforeCancel, beforeFinally, beforeFinally, beforeOnComplete, beforeOnError, beforeOnSubscribe, beforeSubscriber, completed, concat, concat, concat, defer, failed, fromFuture, fromRunnable, fromStage, idleTimeout, idleTimeout, idleTimeout, idleTimeout, liftAsync, liftSync, merge, merge, merge, mergeAll, mergeAll, mergeAll, mergeAll, mergeAllDelayError, mergeAllDelayError, mergeAllDelayError, mergeAllDelayError, mergeDelayError, mergeDelayError, never, onErrorResume, publishAndSubscribeOn, publishAndSubscribeOnOverride, publishOn, publishOnOverride, repeat, repeatWhen, retry, retryWhen, subscribe, subscribe, subscribeInternal, subscribeOn, subscribeOnOverride, subscribeShareContext, toCompletionStage, toFuture, toPublisher, toSingle, whenCancel, whenFinally, whenFinally, whenOnComplete, whenOnError, whenOnSubscribe, whenSubscriber
public LegacyTestCompletable(boolean invokeListenerPostCancel, boolean deferOnSubscribe)
public LegacyTestCompletable()
public void handleSubscribe(CompletableSource.Subscriber subscriber)
Completable
Completable
.
This method is invoked internally by Completable
for every call to the
Completable.subscribeInternal(CompletableSource.Subscriber)
method.
handleSubscribe
in class Completable
subscriber
- the subscriber.public void sendOnSubscribe()
public void onSubscribe(Cancellable cancellable)
CompletableSource.Subscriber
CompletableSource
is subscribed via
CompletableSource.subscribe(Subscriber)
.onSubscribe
in interface CompletableSource.Subscriber
cancellable
- A Cancellable
that can be used to cancel the asynchronous computation for
this subscriber.public void onComplete()
CompletableSource.Subscriber
No further events will be sent.
onComplete
in interface CompletableSource.Subscriber
public void onError(java.lang.Throwable t)
CompletableSource.Subscriber
No further events will be sent.
onError
in interface CompletableSource.Subscriber
t
- the throwable signaledpublic boolean isCancelled()
public LegacyTestCompletable verifyListenCalled()
public LegacyTestCompletable verifyListenNotCalled()
public LegacyTestCompletable verifyCancelled()
public LegacyTestCompletable verifyNotCancelled()