public class AssertionErrorTranslator extends java.lang.Object implements ExpectationErrorTranslator
ExpectationErrors into
AssertionErrors 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 |
|---|---|
java.lang.Error |
translate(ExpectationError e)
Translates the given
ExpectationError into an error
type compatible with another testing framework. |
public static final AssertionErrorTranslator INSTANCE
public java.lang.Error translate(ExpectationError e)
ExpectationErrorTranslatorExpectationError into an error
type compatible with another testing framework.translate in interface ExpectationErrorTranslatore - The ExpectationError to translate.