| java.lang.Object org.kuali.test.monitor.ChangeMonitor
All known Subclasses: org.kuali.test.monitor.DocumentWorkflowStatusMonitor, org.kuali.test.monitor.DocumentWorkflowNodeMonitor, org.kuali.test.monitor.DocumentVersionMonitor, org.kuali.test.monitor.DocumentWorkflowRequestMonitor, org.kuali.test.monitor.DocumentStatusMonitor,
ChangeMonitor | abstract public class ChangeMonitor (Code) | | Simplifies writing tests which have to iterate in place until something happens (or until some timeout occurs and lets the test
fail).
|
Method Summary | |
abstract public boolean | valueChanged() | public static boolean | waitUntilChange(ChangeMonitor monitor, int maxWaitSeconds, int pauseSeconds) Iterates, with pauseSeconds seconds between iterations, until either the given ChangeMonitor's valueChanged method returns
true, or at least maxWaitSeconds seconds have passed. |
valueChanged | abstract public boolean valueChanged() throws Exception(Code) | | true if the value being monitored has changed |
waitUntilChange | public static boolean waitUntilChange(ChangeMonitor monitor, int maxWaitSeconds, int pauseSeconds) throws Exception(Code) | | Iterates, with pauseSeconds seconds between iterations, until either the given ChangeMonitor's valueChanged method returns
true, or at least maxWaitSeconds seconds have passed.
Parameters: monitor - ChangeMonitor instance which watches for whatever change your test is waiting for Parameters: maxWaitSeconds - Parameters: pauseSeconds - true if the the ChangeMonitor's valueChanged method returned true before time ran out |
|
|