public class Synchroniser extends Object implements ThreadingPolicy
| Constructor and Description |
|---|
Synchroniser() |
| Modifier and Type | Method and Description |
|---|---|
Invokable |
synchroniseAccessTo(Invokable mockObject) |
void |
waitUntil(org.jmock.internal.StatePredicate p)
Waits for a StatePredicate to become active.
|
void |
waitUntil(org.jmock.internal.StatePredicate p,
long timeoutMs)
Waits up to a timeout for a StatePredicate to become active.
|
public void waitUntil(org.jmock.internal.StatePredicate p)
throws InterruptedException
p - the StatePredicate to wait forInterruptedExceptionpublic void waitUntil(org.jmock.internal.StatePredicate p,
long timeoutMs)
throws InterruptedException
p - the StatePredicate to wait fortimeoutMs - the timeout in millisecondsInterruptedExceptionpublic Invokable synchroniseAccessTo(Invokable mockObject)
synchroniseAccessTo in interface ThreadingPolicy