Class AbstractThrownExceptionMediator
java.lang.Object
ch.nolix.base.testing.standardtest.AbstractThrownExceptionMediator
- Direct Known Subclasses:
ExtendedThrownExceptionMediator, ThrownExceptionMediator
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionfinal voidGenerates an error if the exception of the currentAbstractThrownExceptionMediatordoes not have a message.final voidwithMessage(String message) Generates an error if the exception of the currentAbstractThrownExceptionMediatordoes not have the given message.final voidwithMessageThatMatches(String regex) Generates an error if the exception of the currentAbstractThrownExceptionMediatordoes not have a message that matches the given regexfinal voidGenerates an error if the exception of the currentAbstractThrownExceptionMediatorhas a message.
-
Method Details
-
withMessage
public final void withMessage()Generates an error if the exception of the currentAbstractThrownExceptionMediatordoes not have a message. -
withMessage
Generates an error if the exception of the currentAbstractThrownExceptionMediatordoes not have the given message.- Parameters:
message-- Throws:
RuntimeException- if the given message is null.
-
withMessageThatMatches
Generates an error if the exception of the currentAbstractThrownExceptionMediatordoes not have a message that matches the given regex- Parameters:
regex-- Throws:
RuntimeException- if the given regex is null.
-
withoutMessage
public final void withoutMessage()Generates an error if the exception of the currentAbstractThrownExceptionMediatorhas a message.
-