IAnswer (EasyMock 3.3.1 API)
Date: 2015-01-05

org.easymock

## Interface IAnswer<T>

- Type Parameters:
    `T` - the type to return.
  All Known Implementing Classes:
    Result

      public interface IAnswer<T>

  Used to answer expected calls.
  Author:
    OFFIS, Tammo Freese

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `answer()` Is called by EasyMock to answer an expected call.

- - ### Method Detail

    - #### answer

          T answer()
            throws Throwable

      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 `EasyMock.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–2015 EasyMock contributors. All rights reserved.