java.lang.Object
org.tudalgo.algoutils.tutor.general.assertions.actual.ActualExceptions

public final class ActualExceptions extends Object

A collection of methods for building actual exceptions.

  • Method Details

    • noException

      public static <T extends Throwable> ActualException<T> noException()

      Returns a behavior where no exception was thrown.

      Type Parameters:
      T - the type of the expected exception
      Returns:
      the behavior
    • unexpectedException

      public static <T extends Throwable> ActualException<T> unexpectedException()

      Returns a behavior where an unexpected exception was thrown.

      Type Parameters:
      T - the type of the expected exception
      Returns:
      the behavior