Class ExpectedExceptional

java.lang.Object
org.tudalgo.algoutils.tutor.general.assertions.expected.ExpectedExceptional

public final class ExpectedExceptional extends Object

A collection of methods for building expected exceptional behaviors.

  • Method Details

    • instanceOf

      public static <T extends Exception> ExpectedException<T> instanceOf(Class<T> type)

      Returns an expected behavior where an exception of the given type is expected to be thrown.

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