Class EventAnticipator

    • Constructor Detail

      • EventAnticipator

        public EventAnticipator()
    • Method Detail

      • isDiscardUnanticipated

        public boolean isDiscardUnanticipated()
        Returns:
        the discardUnanticipated
      • setDiscardUnanticipated

        public void setDiscardUnanticipated​(boolean discardUnanticipated)
        Parameters:
        discardUnanticipated - the discardUnanticipated to set
      • anticipateEvent

        public void anticipateEvent​(Event event)
        Parameters:
        event -
      • anticipateEvent

        public void anticipateEvent​(Event event,
                                    boolean checkUnanticipatedList)
      • eventReceived

        public void eventReceived​(Event event)
        Parameters:
        event -
      • getAnticipatedEvents

        public List<Event> getAnticipatedEvents()
      • getAnticipatedEventsReceived

        public List<Event> getAnticipatedEventsReceived()
      • getUnanticipatedEvents

        public List<Event> getUnanticipatedEvents()
        Returns:
      • reset

        public void reset()
      • resetUnanticipated

        public void resetUnanticipated()
      • resetAnticipated

        public void resetAnticipated()
      • waitForAnticipated

        public Collection<Event> waitForAnticipated​(long millis)
        Parameters:
        i -
        Returns:
      • eventProcessed

        public void eventProcessed​(Event event)
        Parameters:
        event -
      • verifyAnticipated

        public void verifyAnticipated​(long wait,
                                      long sleepMiddle,
                                      long sleepAfter,
                                      int anticipatedSize,
                                      int unanticipatedSize)
      • verifyAnticipated

        public void verifyAnticipated()