Class ExpectedExceptionHandler
- java.lang.Object
-
- org.activiti.cloud.acc.shared.serenity.exception.ExpectedExceptionHandler
-
public class ExpectedExceptionHandler extends Object
Expected exception handler
-
-
Constructor Summary
Constructors Constructor Description ExpectedExceptionHandler()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisExpectingException()Ask if an exception is expected.static booleanisThrowingExpectedException(ExpectedException expectedException, org.assertj.core.api.ThrowableAssert.ThrowingCallable throwingCallable)Ask if a call throws an expected exception.
-
-
-
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 exceptionthrowingCallable- the callable
-
isExpectingException
public static boolean isExpectingException()
Ask if an exception is expected.- Returns:
- true if an exception is expected
-
-