Class RxTestSubscriber<T>
java.lang.Object
io.reactivex.rxjava3.observers.BaseTestConsumer<T,io.reactivex.rxjava3.subscribers.TestSubscriber<T>>
io.reactivex.rxjava3.subscribers.TestSubscriber<T>
org.saynotobugs.confidence.rxjava3.adapters.RxTestSubscriber<T>
- All Implemented Interfaces:
io.reactivex.rxjava3.core.FlowableSubscriber<T>,org.reactivestreams.Subscriber<T>,org.reactivestreams.Subscription,RxTestAdapter<T>
public final class RxTestSubscriber<T>
extends io.reactivex.rxjava3.subscribers.TestSubscriber<T>
implements RxTestAdapter<T>
-
Field Summary
Fields inherited from class io.reactivex.rxjava3.observers.BaseTestConsumer
checkSubscriptionOnce, completions, done, errors, lastThread, tag, timeout, values -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.reactivex.rxjava3.subscribers.TestSubscriber
assertSubscribed, cancel, create, create, create, dispose, hasSubscription, isCancelled, isDisposed, onComplete, onError, onNext, onStart, onSubscribe, request, requestMoreMethods inherited from class io.reactivex.rxjava3.observers.BaseTestConsumer
assertComplete, assertEmpty, assertError, assertError, assertError, assertFailure, assertNoErrors, assertNotComplete, assertNoValues, assertResult, assertValue, assertValue, assertValueAt, assertValueAt, assertValueCount, assertValues, assertValueSequence, assertValuesOnly, await, await, awaitCount, awaitDone, fail, valueAndClass, values, withTagMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.saynotobugs.confidence.rxjava3.RxTestAdapter
cancel, isCancelled
-
Constructor Details
-
RxTestSubscriber
public RxTestSubscriber()
-
-
Method Details
-
completions
public long completions()- Specified by:
completionsin interfaceRxTestAdapter<T>
-
newValues
Description copied from interface:RxTestAdapterReturns the next count values that have not been acknowledged so far. The result will have fewer elements if nocountelements have been emitted.- Specified by:
newValuesin interfaceRxTestAdapter<T>
-
awaitNext
public void awaitNext(int count) Description copied from interface:RxTestAdapterWaits (at most 5 seconds) for at least count values to be emitted. This method returns without an error even if nocounthave been emitted.- Specified by:
awaitNextin interfaceRxTestAdapter<T>
-
ack
public void ack(int count) - Specified by:
ackin interfaceRxTestAdapter<T>
-
errors
- Specified by:
errorsin interfaceRxTestAdapter<T>
-