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
Translates ExpectationError
s into JUnit's
AssertionFailedError
s.
- Author:
- npryce
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final JUnit3ErrorTranslator INSTANCE
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.