public class AssertionErrorTranslator extends Object implements ExpectationErrorTranslator
ExpectationError
s into
AssertionError
s that several
test frameworks, including JUnit 4 and TestNG, use to report
errors.Modifier and Type | Field and Description |
---|---|
static AssertionErrorTranslator |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
Error |
translate(ExpectationError e)
Translates the given
ExpectationError into an error
type compatible with another testing framework. |
public static final AssertionErrorTranslator INSTANCE
public Error translate(ExpectationError e)
ExpectationErrorTranslator
ExpectationError
into an error
type compatible with another testing framework.translate
in interface ExpectationErrorTranslator
e
- The ExpectationError
to translate.Copyright © 2003–2021 jMock. All rights reserved.