Package docking.test
Class TestFailingErrorDisplayWrapper
java.lang.Object
docking.test.TestFailingErrorDisplayWrapper
- All Implemented Interfaces:
ErrorDisplay
An error display wrapper that allows us to fail tests when errors are encountered. This is
a way for us to fail for exceptions that come from client code, but are handled by the
error display service, while running tests.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
displayErrorMessage
(ErrorLogger errorLogger, Object originator, Component parent, String title, Object message, Throwable throwable) void
displayInfoMessage
(ErrorLogger errorLogger, Object originator, Component parent, String title, Object message) void
displayWarningMessage
(ErrorLogger errorLogger, Object originator, Component parent, String title, Object message, Throwable throwable) void
setErrorDisplayDelegate
(ErrorDisplay delegate)
-
Constructor Details
-
TestFailingErrorDisplayWrapper
public TestFailingErrorDisplayWrapper()
-
-
Method Details
-
setErrorDisplayDelegate
-
displayInfoMessage
public void displayInfoMessage(ErrorLogger errorLogger, Object originator, Component parent, String title, Object message) - Specified by:
displayInfoMessage
in interfaceErrorDisplay
-
displayErrorMessage
public void displayErrorMessage(ErrorLogger errorLogger, Object originator, Component parent, String title, Object message, Throwable throwable) - Specified by:
displayErrorMessage
in interfaceErrorDisplay
-
displayWarningMessage
public void displayWarningMessage(ErrorLogger errorLogger, Object originator, Component parent, String title, Object message, Throwable throwable) - Specified by:
displayWarningMessage
in interfaceErrorDisplay
-