Class EchoAnswer<T>

java.lang.Object
com.atlassian.confluence.util.test.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 Details

    • EchoAnswer

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

    • 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