Class ArgRecorderAnswer<T>

  • All Implemented Interfaces:
    org.mockito.stubbing.Answer<T>

    public class ArgRecorderAnswer<T>
    extends java.lang.Object
    implements org.mockito.stubbing.Answer<T>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T answer​(org.mockito.invocation.InvocationOnMock invocation)  
      <X> X getArg​(int index)  
      int getArgCount()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ArgRecorderAnswer

        public ArgRecorderAnswer()
    • Method Detail

      • answer

        public T answer​(org.mockito.invocation.InvocationOnMock invocation)
                 throws java.lang.Throwable
        Specified by:
        answer in interface org.mockito.stubbing.Answer<T>
        Throws:
        java.lang.Throwable
      • getArg

        public <X> X getArg​(int index)
      • getArgCount

        public int getArgCount()