Package org.jmock.integration.junit3
Class JUnit3ErrorTranslator
- java.lang.Object
-
- org.jmock.integration.junit3.JUnit3ErrorTranslator
-
- All Implemented Interfaces:
ExpectationErrorTranslator
public class JUnit3ErrorTranslator extends Object implements ExpectationErrorTranslator
TranslatesExpectationError
s into JUnit'sAssertionFailedError
s.- Author:
- npryce
-
-
Field Summary
Fields Modifier and Type Field Description static JUnit3ErrorTranslator
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 JUnit3ErrorTranslator 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.
-
-