Class IntDialogMock


  • public abstract class IntDialogMock
    extends java.lang.Object
    Interface for mocking of standard dialog results during a test run.
    • Constructor Summary

      Constructors 
      Constructor Description
      IntDialogMock()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void offerResult​(int result)
      Adds a result to the result queue.
      void offerResult​(java.util.function.IntSupplier resultSupplier)
      Adds a result to the result queue.
      protected @Nullable java.util.function.IntSupplier pollResult()
      Gets the next result from the result queue.
      • Methods inherited from class java.lang.Object

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

      • IntDialogMock

        public IntDialogMock()
    • Method Detail

      • offerResult

        public void offerResult​(int result)
        Adds a result to the result queue.
        Parameters:
        result - the result to add.
      • offerResult

        public void offerResult​(java.util.function.IntSupplier resultSupplier)
        Adds a result to the result queue.
        Parameters:
        resultSupplier - the result to add.
      • pollResult

        protected @Nullable java.util.function.IntSupplier pollResult()
        Gets the next result from the result queue.
        Returns:
        the next result from the result queue or null if the result queue is empty.