- All Implemented Interfaces:
org.mockito.stubbing.Answer<T>
public class ArgRecorderAnswer<T>
extends Object
implements org.mockito.stubbing.Answer<T>
-
Constructor Summary
Constructors
-
Method Summary
answer(org.mockito.invocation.InvocationOnMock invocation)
<X> X
int
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ArgRecorderAnswer
public ArgRecorderAnswer()
-
Method Details
-
answer
public T answer(org.mockito.invocation.InvocationOnMock invocation)
throws Throwable
- Specified by:
answer in interface org.mockito.stubbing.Answer<T>
- Throws:
Throwable
-
getArg
public <X> X getArg(int index)
-
getArgCount
public int getArgCount()