Package org.assertj.core.error
Class ShouldHaveSuppressedException
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldHaveSuppressedException
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldHaveSuppressedException extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that aThrowablehas a given suppressed exception failed.
-
-
Field Summary
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description privateShouldHaveSuppressedException(Throwable actual, Throwable expectedSuppressedException)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactoryshouldHaveSuppressedException(Throwable actual, Throwable expectedSuppressedException)Creates a new.ShouldHaveSuppressedException-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Method Detail
-
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.
-
-