com.atlassian.confluence.util.test
Class EchoAnswer<T>

java.lang.Object
  extended by com.atlassian.confluence.util.test.EchoAnswer<T>
All Implemented Interfaces:
org.mockito.stubbing.Answer<T>

Deprecated. since 5.6.1, use AdditionalAnswers.returnsArgAt(int) instead.

@Deprecated
public class EchoAnswer<T>
extends Object
implements org.mockito.stubbing.Answer<T>


Constructor Summary
EchoAnswer(Class<T> type)
          Deprecated.  
 
Method Summary
 T answer(org.mockito.invocation.InvocationOnMock invocation)
          Deprecated.  
static
<T> EchoAnswer<T>
echo(Class<T> type)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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


Copyright © 2003–2015 Atlassian. All rights reserved.