Class ExpectedExceptional
java.lang.Object
org.tudalgo.algoutils.tutor.general.assertions.expected.ExpectedExceptional
A collection of methods for building expected exceptional behaviors.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <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.
-
Method Details
-
instanceOf
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
-