Class EchoAnswer<T>

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

    @Deprecated
    public class EchoAnswer<T>
    extends Object
    implements org.mockito.stubbing.Answer<T>
    Deprecated.
    since 5.6.1, use AdditionalAnswers.returnsArgAt(int) instead.
    • Constructor Detail

      • EchoAnswer

        public EchoAnswer​(Class<T> type)
        Deprecated.
    • Method Detail

      • echo

        public static <T> EchoAnswer<T> echo​(Class<T> type)
        Deprecated.
      • answer

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