Class ExpectedExceptionHandler

java.lang.Object
org.activiti.cloud.acc.shared.serenity.exception.ExpectedExceptionHandler

public class ExpectedExceptionHandler extends Object
Expected exception handler
  • Constructor Details

    • ExpectedExceptionHandler

      public ExpectedExceptionHandler()
  • Method Details

    • 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