public class LatchCountDownAndCallRealMethodAnswer extends Object implements org.mockito.stubbing.Answer<Void>
Answer for void returning methods that calls the real method and counts down
a latch. Captures any exceptions thrown.| Constructor and Description |
|---|
LatchCountDownAndCallRealMethodAnswer(int count) |
| Modifier and Type | Method and Description |
|---|---|
Void |
answer(org.mockito.invocation.InvocationOnMock invocation) |
Collection<Exception> |
getExceptions()
Return the exceptions thrown.
|
CountDownLatch |
getLatch() |
public LatchCountDownAndCallRealMethodAnswer(int count)
count - to set in a CountDownLatch.public CountDownLatch getLatch()
@Nullable public Collection<Exception> getExceptions()