public class Synchroniser extends Object implements ThreadingPolicy
| Constructor and Description |
|---|
Synchroniser() |
| Modifier and Type | Method and Description |
|---|---|
Invokable |
synchroniseAccessTo(Invokable mockObject) |
void |
waitUntil(StatePredicate p)
Waits for a StatePredicate to become active.
|
void |
waitUntil(StatePredicate p,
long timeoutMs)
Waits up to a timeout for a StatePredicate to become active.
|
public void waitUntil(StatePredicate p) throws InterruptedException
p - the StatePredicate to wait forInterruptedExceptionpublic void waitUntil(StatePredicate p, long timeoutMs) throws InterruptedException
p - the StatePredicate to wait fortimeoutMs - the timeout in millisecondsInterruptedExceptionpublic Invokable synchroniseAccessTo(Invokable mockObject)
synchroniseAccessTo in interface ThreadingPolicyCopyright © 2003–2017 jMock. All rights reserved.