Package org.jmock.lib
Class AssertionErrorTranslator
java.lang.Object
org.jmock.lib.AssertionErrorTranslator
- All Implemented Interfaces:
ExpectationErrorTranslator
Translates
ExpectationError
s into
AssertionError
s that several
test frameworks, including JUnit 4 and TestNG, use to report
errors.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTranslates the givenExpectationError
into an error type compatible with another testing framework.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
AssertionErrorTranslator
private AssertionErrorTranslator()
-
-
Method Details
-
translate
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.
-