Package org.jmock.lib
Class IdentityExpectationErrorTranslator
- java.lang.Object
-
- org.jmock.lib.IdentityExpectationErrorTranslator
-
- All Implemented Interfaces:
ExpectationErrorTranslator
public class IdentityExpectationErrorTranslator extends Object implements ExpectationErrorTranslator
AnExpectationErrorTranslator
that doesn't do any translation. It returns theExpectationError
it is given.- Author:
- nat
-
-
Field Summary
Fields Modifier and Type Field Description static IdentityExpectationErrorTranslator
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Error
translate(ExpectationError e)
Translates the givenExpectationError
into an error type compatible with another testing framework.
-
-
-
Field Detail
-
INSTANCE
public static final IdentityExpectationErrorTranslator INSTANCE
-
-
Method Detail
-
translate
public Error translate(ExpectationError e)
Description copied from interface:ExpectationErrorTranslator
Translates the givenExpectationError
into an error type compatible with another testing framework.- Specified by:
translate
in interfaceExpectationErrorTranslator
- Parameters:
e
- TheExpectationError
to translate.- Returns:
- An error that is compatible with another testing framework and contains the same message and stack trace as e.
-
-