Class ThrownExceptionMediator
java.lang.Object
ch.nolix.base.testing.standardtest.AbstractThrownExceptionMediator
ch.nolix.base.testing.standardtest.ThrownExceptionMediator
A
ThrownExceptionMediator is not mutable.
A ThrownExceptionMediator does not need to have an exception. In the
case an exception was expected, but not thrown, a
ThrownExceptionMediator must be created, but an exception cannot be
given to it.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionstatic ThrownExceptionMediatorforExcetpion(Throwable exception) static ThrownExceptionMediatorMethods inherited from class AbstractThrownExceptionMediator
withMessage, withMessage, withMessageThatMatches, withoutMessage
-
Method Details
-
forExcetpion
- Parameters:
exception-- Returns:
- a new
ThrownExceptionMediatorfor the given exception. - Throws:
RuntimeException- if the given exception is null.
-
withoutException
- Returns:
- a new
ThrownExceptionMediatorwithout exception.
-