Class ExpectedExceptionHandler


  • public class ExpectedExceptionHandler
    extends Object
    Expected exception handler
    • Constructor Detail

      • ExpectedExceptionHandler

        public ExpectedExceptionHandler()
    • Method Detail

      • isThrowingExpectedException

        public static boolean isThrowingExpectedException​(ExpectedException expectedException,
                                                          org.assertj.core.api.ThrowableAssert.ThrowingCallable throwingCallable)
        Ask if a call throws an expected exception.
        Parameters:
        expectedException - expected exception
        throwingCallable - the callable
      • isExpectingException

        public static boolean isExpectingException()
        Ask if an exception is expected.
        Returns:
        true if an exception is expected