Package org.assertj.core.error
Class ShouldHaveSuppressedException
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldHaveSuppressedException
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a
Throwable has a given suppressed exception failed.-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactoryshouldHaveSuppressedException(Throwable actual, Throwable expectedSuppressedException) Creates a new.ShouldHaveSuppressedExceptionMethods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldHaveSuppressedException
public static ErrorMessageFactory shouldHaveSuppressedException(Throwable actual, Throwable expectedSuppressedException) Creates a new.ShouldHaveSuppressedException- Parameters:
actual- the throwable to check suppressed exceptions.expectedSuppressedException- the expected suppressed exception.- Returns:
- the created
ErrorMessageFactory.
-