public class NotificationAnticipator extends Object
| Constructor and Description |
|---|
NotificationAnticipator() |
| Modifier and Type | Method and Description |
|---|---|
void |
anticipateNotification(MockNotification mn) |
Collection<MockNotification> |
getAnticipatedNotifications() |
long |
getExpectedDifference() |
Collection<MockNotification> |
getUnanticipated() |
void |
notificationReceived(MockNotification mn) |
void |
reset() |
void |
setExpectedDifference(long expectedDiff) |
void |
verifyAnticipated(long lastNotifyTime,
long waitTime,
long sleepTime) |
Collection<MockNotification> |
waitForAnticipated(long millis) |
public void setExpectedDifference(long expectedDiff)
expectedDiff - public long getExpectedDifference()
public void anticipateNotification(MockNotification mn)
event - public void notificationReceived(MockNotification mn)
event - public Collection<MockNotification> getAnticipatedNotifications()
public void reset()
public Collection<MockNotification> getUnanticipated()
public Collection<MockNotification> waitForAnticipated(long millis)
i - public void verifyAnticipated(long lastNotifyTime,
long waitTime,
long sleepTime)
Copyright © 2020. All rights reserved.