IAnswer (EasyMock 2.5.2 API)
Date: 2009-09-12

Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.easymock
Interface IAnswer<T>

Type Parameters:
  `T` - the type to return.

    public interface IAnswer<T>

Used to answer expected calls.

Method Summary
`T` | `answer()` is called by EasyMock to answer an expected call.

Method Detail

### answer

    T answer()
             throws java.lang.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:
    `java.lang.Throwable` - the throwable to be thrown

Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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