Klasse ThrownExceptionMediator

java.lang.Object
ch.nolix.core.testing.standardtest.ThrownExceptionMediator
Bekannte direkte Unterklassen:
ExtendedThrownExceptionMediator

public class ThrownExceptionMediator extends Object
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.
Version:
2018-12-09
Autor:
Silvan Wyss
  • Methodendetails

    • withMessage

      public final void withMessage()
      Generates an error if the exception of the current ThrownExceptionMediator does not have a message.
    • withMessage

      public final void withMessage(String message)
      Generates an error if the exception of the current ThrownExceptionMediator does not have the given message.
      Parameter:
      message -
      Löst aus:
      ArgumentIsNullException - if the given message is null.
    • withMessageThatMatches

      public final void withMessageThatMatches(String regex)
      Generates an error if the exception of the current ThrownExceptionMediator does not have a message that matches the given regex
      Parameter:
      regex -
      Löst aus:
      ArgumentIsNullException - if the given regex is null.
    • withoutMessage

      public final void withoutMessage()
      Generates an error if the exception of the current ThrownExceptionMediator has a message.