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

## org.jmock.lib
Class IdentityExpectationErrorTranslator

    java.lang.Object
      org.jmock.lib.IdentityExpectationErrorTranslator

All Implemented Interfaces:
  ExpectationErrorTranslator

    public class IdentityExpectationErrorTranslator

extends Object
implements ExpectationErrorTranslator

An `ExpectationErrorTranslator` that doesn't do any translation. It returns the `ExpectationError` it is given.

Author:
  nat

Field Summary
`static IdentityExpectationErrorTranslator` | `INSTANCE`

Method Summary
`Error` | `translate(ExpectationError e)` Translates the given `ExpectationError` into an error type compatible with another testing framework.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### INSTANCE

    public static final IdentityExpectationErrorTranslator INSTANCE

Method Detail

### translate

    public Error translate(ExpectationError e)

  Description copied from interface: `ExpectationErrorTranslator`
  Translates the given `ExpectationError` into an error type compatible with another testing framework.

  Specified by:
    `translate` in interface `ExpectationErrorTranslator`
  Parameters:
    `e` - The `ExpectationError` to translate.
  Returns:
    An error that is compatible with another testing framework and contains the same message and stack trace as e.

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