Class NotificationAnticipator


  • public class NotificationAnticipator
    extends Object
    Author:
    brozow
    • Constructor Detail

      • NotificationAnticipator

        public NotificationAnticipator()
    • Method Detail

      • setExpectedDifference

        public void setExpectedDifference​(long expectedDiff)
        Parameters:
        expectedDiff -
      • getExpectedDifference

        public long getExpectedDifference()
        Returns:
      • anticipateNotification

        public void anticipateNotification​(MockNotification mn)
        Parameters:
        event -
      • notificationReceived

        public void notificationReceived​(MockNotification mn)
        Parameters:
        event -
      • reset

        public void reset()
      • verifyAnticipated

        public void verifyAnticipated​(long lastNotifyTime,
                                      long waitTime,
                                      long sleepTime)