An assertions applicable to exceptions, see assertThatException()
.
no subtypes hierarchy
Initializer |
ExceptionAssert(Throwable exception) Parameters:
|
Methods | |
hasMessage | Source Codeshared ExceptionAssert hasMessage(String|Boolean(String) messageCondition) Verifies that the actual exception has expected message. Parameters:
Throws
|
hasNoCause | Source Codeshared ExceptionAssert hasNoCause() Verifies that the actual exception does not have a cause. Throws
|
hasType | Source Codeshared ExceptionAssert hasType(Class<Throwable,Nothing>|Boolean(ClassModel<Throwable,Nothing>) typeCondition) Verifies that the actual exception has expected type. Parameters:
Throws
|
Inherited Methods |
Methods inherited from: Object |