public class LatchCountDownAndCallRealMethodAnswer
extends java.lang.Object
implements org.mockito.stubbing.Answer<java.lang.Void>
| Constructor and Description |
|---|
LatchCountDownAndCallRealMethodAnswer(int count) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Void |
answer(org.mockito.invocation.InvocationOnMock invocation) |
java.util.concurrent.CountDownLatch |
getLatch() |
public LatchCountDownAndCallRealMethodAnswer(int count)
count - to set in a CountDownLatch.public java.lang.Void answer(org.mockito.invocation.InvocationOnMock invocation)
throws java.lang.Throwable
answer in interface org.mockito.stubbing.Answer<java.lang.Void>invocation - the invocation on the mock.java.lang.Throwable - the throwable to be thrownpublic java.util.concurrent.CountDownLatch getLatch()