Interface RxTestAdapter<T>

All Known Implementing Classes:
RxTestObserver, RxTestSubscriber

public interface RxTestAdapter<T>
A generalization of TestObserver and TestSubscriber. That provides some means to "acknowledge" already seen emissions.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    ack(int count)
     
    void
    awaitNext(int count)
    Waits (at most 5 seconds) for at least count values to be emitted.
    void
     
    long
     
     
    boolean
     
    newValues(int count)
    Returns the next count values that have not been acknowledged so far.
  • Method Details

    • 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 no count have been emitted.
    • newValues

      Collection<T> newValues(int count)
      Returns the next count values that have not been acknowledged so far. The result will have fewer elements if no count elements have been emitted.
    • ack

      void ack(int count)
    • completions

      long completions()
    • errors

      Iterable<Throwable> errors()
    • isCancelled

      boolean isCancelled()
    • cancel

      void cancel()