Class Mocks


  • public class Mocks
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Mocks()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> java.util.concurrent.Flow.Subscriber<T> subscriber()
      Mocks a subscriber and prepares it to request Long.MAX_VALUE.
      static <T> java.util.concurrent.Flow.Subscriber<T> subscriber​(long req)
      Mocks a subscriber and prepares it to request req.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Mocks

        public Mocks()
    • Method Detail

      • subscriber

        public static <T> java.util.concurrent.Flow.Subscriber<T> subscriber()
        Mocks a subscriber and prepares it to request Long.MAX_VALUE.
        Type Parameters:
        T - the value type
        Returns:
        the mocked subscriber
      • subscriber

        public static <T> java.util.concurrent.Flow.Subscriber<T> subscriber​(long req)
        Mocks a subscriber and prepares it to request req.
        Type Parameters:
        T - the value type
        Returns:
        the mocked subscriber