Package org.opennms.netmgt.mock
Class NotificationAnticipator
- java.lang.Object
-
- org.opennms.netmgt.mock.NotificationAnticipator
-
public class NotificationAnticipator extends java.lang.Object
- Author:
- brozow
-
-
Constructor Summary
Constructors Constructor Description NotificationAnticipator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
anticipateNotification(MockNotification mn)
java.util.Collection<MockNotification>
getAnticipatedNotifications()
long
getExpectedDifference()
java.util.Collection<MockNotification>
getUnanticipated()
void
notificationReceived(MockNotification mn)
void
reset()
void
setExpectedDifference(long expectedDiff)
void
verifyAnticipated(long lastNotifyTime, long waitTime, long sleepTime)
java.util.Collection<MockNotification>
waitForAnticipated(long millis)
-
-
-
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
-
-
getAnticipatedNotifications
public java.util.Collection<MockNotification> getAnticipatedNotifications()
-
reset
public void reset()
-
getUnanticipated
public java.util.Collection<MockNotification> getUnanticipated()
- Returns:
-
waitForAnticipated
public java.util.Collection<MockNotification> waitForAnticipated(long millis)
- Parameters:
i
-- Returns:
-
verifyAnticipated
public void verifyAnticipated(long lastNotifyTime, long waitTime, long sleepTime)
-
-