Class MockObservedMonitor.Registered<T>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCallCount​()
      Get the number of times the onObserved() method was called.
      T getObservable​()
      Get the closeable instance.
      void onObserved​()
      Called when the observable object has its specific action called.
      boolean wasObserved​()
      Return if this closeable object had the onObserved() ()} method called.
      • Methods inherited from class java.lang.Object

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

      • getCallCount

        public int getCallCount​()
        Get the number of times the onObserved() method was called.
        Returns:
        closed invocation count
      • wasObserved

        public boolean wasObserved​()
        Return if this closeable object had the onObserved() ()} method called.
        Returns:
        true if the on close method was called, otherwise false.
      • getObservable

        @Nonnull
        public T getObservable​()
        Get the closeable instance.
        Returns:
        closeable instance