Class AbstractThrownExceptionMediator

java.lang.Object
ch.nolix.base.testing.standardtest.AbstractThrownExceptionMediator
Direct Known Subclasses:
ExtendedThrownExceptionMediator, ThrownExceptionMediator

public abstract class AbstractThrownExceptionMediator extends Object
Author:
Silvan Wyss
  • Method Details

    • withMessage

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

      public final void withMessage(String message)
      Generates an error if the exception of the current AbstractThrownExceptionMediator does not have the given message.
      Parameters:
      message -
      Throws:
      RuntimeException - if the given message is null.
    • withMessageThatMatches

      public final void withMessageThatMatches(String regex)
      Generates an error if the exception of the current AbstractThrownExceptionMediator does 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 current AbstractThrownExceptionMediator has a message.