public static class GenericTestUtils.DelayAnswer extends Object
Constructor and Description |
---|
DelayAnswer(Log log) |
Modifier and Type | Method and Description |
---|---|
Object |
answer(InvocationOnMock invocation) |
int |
getFireCount() |
int |
getResultCount() |
Object |
getReturnValue()
After the call has gone through, return the call's return value,
or null in case it was void or an exception was thrown.
|
Throwable |
getThrown()
After the call has gone through, return any exception that
was thrown, or null if no exception was thrown.
|
protected Object |
passThrough(InvocationOnMock invocation) |
void |
proceed()
Tell the method to proceed.
|
void |
waitForCall()
Wait until the method is called.
|
void |
waitForResult()
After calling proceed(), this will wait until the call has
completed and a result has been returned to the caller.
|
public void waitForCall() throws InterruptedException
InterruptedException
public void proceed()
protected Object passThrough(InvocationOnMock invocation) throws Throwable
Throwable
public void waitForResult() throws InterruptedException
InterruptedException
public Throwable getThrown()
public Object getReturnValue()
public int getFireCount()
public int getResultCount()