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

      All Methods Instance Methods Abstract Methods 
      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.
      long completions()  
      java.lang.Iterable<java.lang.Throwable> errors()  
      boolean isCancelled()  
      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 no count have 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 no count elements have been emitted.
      • ack

        void ack​(int count)
      • completions

        long completions()
      • errors

        java.lang.Iterable<java.lang.Throwable> errors()
      • isCancelled

        boolean isCancelled()