org.easymock

Interface IAnswer<T>

public interface IAnswer<T>

Used to answer expected calls.

Parameters: the type to return.

Method Summary
Tanswer()
is called by EasyMock to answer an expected call.

Method Detail

answer

public T answer()
is called by EasyMock to answer an expected call. The answer may be to return a value, or to throw an exception. The arguments of the call for which the answer is generated are available via getCurrentArguments - be careful here, using the arguments is not refactoring-safe.

Returns: the value to be returned

Throws: Throwable the throwable to be thrown

Copyright © 2001-2009 OFFIS, Tammo Freese, Henri Tremblay. This documentation is provided under the terms of the MIT licence.]]>