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>

public class EchoAnswer<T>
extends java.lang.Object
implements org.mockito.stubbing.Answer<T>


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

Constructor Detail

EchoAnswer

public EchoAnswer(java.lang.Class<T> type)
Method Detail

echo

public static <T> EchoAnswer<T> echo(java.lang.Class<T> type)

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


Copyright © 2003-2013 Atlassian. All Rights Reserved.