Class ActualExceptions
java.lang.Object
org.tudalgo.algoutils.tutor.general.assertions.actual.ActualExceptions
A collection of methods for building actual exceptions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Throwable>
ActualException<T>Returns a behavior where no exception was thrown.static <T extends Throwable>
ActualException<T>Returns a behavior where an unexpected exception was thrown.
-
Method Details
-
noException
Returns a behavior where no exception was thrown.
- Type Parameters:
T- the type of the expected exception- Returns:
- the behavior
-
unexpectedException
Returns a behavior where an unexpected exception was thrown.
- Type Parameters:
T- the type of the expected exception- Returns:
- the behavior
-