Package org.jmock.lib
Class AssertionErrorTranslator
- java.lang.Object
-
- org.jmock.lib.AssertionErrorTranslator
-
- All Implemented Interfaces:
ExpectationErrorTranslator
public class AssertionErrorTranslator extends Object implements ExpectationErrorTranslator
TranslatesExpectationErrors intoAssertionErrors that several test frameworks, including JUnit 4 and TestNG, use to report errors.- Author:
- npryce
-
-
Field Summary
Fields Modifier and Type Field Description static AssertionErrorTranslatorINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Errortranslate(ExpectationError e)Translates the givenExpectationErrorinto an error type compatible with another testing framework.
-
-
-
Field Detail
-
INSTANCE
public static final AssertionErrorTranslator INSTANCE
-
-
Method Detail
-
translate
public Error translate(ExpectationError e)
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.
-
-