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.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTranslates the givenExpectationErrorinto an error type compatible with another testing framework.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
IdentityExpectationErrorTranslator
private IdentityExpectationErrorTranslator()
-
-
Method Details
-
translate
Description copied from interface:ExpectationErrorTranslatorTranslates the givenExpectationErrorinto an error type compatible with another testing framework.- Specified by:
translatein interfaceExpectationErrorTranslator- Parameters:
e- TheExpectationErrorto translate.- Returns:
- An error that is compatible with another testing framework and contains the same message and stack trace as e.
-