Interface RxTestAdapter<T>
-
- All Known Implementing Classes:
RxTestObserver,RxTestSubscriber
public interface RxTestAdapter<T>A generalization ofTestObserverandTestSubscriber. That provides some means to "acknowledge" already seen emissions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidack(int count)voidawaitNext(int count)Waits (at most 5 seconds) for at least count values to be emitted.longcompletions()java.lang.Iterable<java.lang.Throwable>errors()booleanisCancelled()java.util.Collection<T>newValues(int count)Returns the next count values that have not been acknowledged so far.
-
-
-
Method Detail
-
awaitNext
void awaitNext(int count)
Waits (at most 5 seconds) for at least count values to be emitted. This method returns without an error even if nocounthave been emitted.
-
newValues
java.util.Collection<T> newValues(int count)
Returns the next count values that have not been acknowledged so far. The result will have fewer elements if nocountelements have been emitted.
-
ack
void ack(int count)
-
completions
long completions()
-
errors
java.lang.Iterable<java.lang.Throwable> errors()
-
isCancelled
boolean isCancelled()
-
-