Top Description Fields Constructors Methods
org.assertj.core.error

public Class ShouldHaveSuppressedException

extends BasicErrorMessageFactory
Class Inheritance

Creates an error message indicating that an assertion that verifies that a Throwable has a given suppressed exception failed.

Field Summary

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
argumentsformatformatter

Constructor Summary

AccessConstructor and Description
private
ShouldHaveSuppressedException(Throwable actual, Throwable expectedSuppressedException)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldHaveSuppressedException
(Throwable
the throwable to check suppressed exceptions.
actual
,
Throwable
the expected suppressed exception.
expectedSuppressedException
)

Creates a new ShouldHaveSuppressedException.

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
createcreatecreateequalshashCodetoStringunquotedString

Constructor Detail

ShouldHaveSuppressedExceptionback to summary
private ShouldHaveSuppressedException(Throwable actual, Throwable expectedSuppressedException)

Method Detail

shouldHaveSuppressedExceptionback to summary
public static ErrorMessageFactory shouldHaveSuppressedException(Throwable actual, Throwable expectedSuppressedException)

Creates a new ShouldHaveSuppressedException.

Parameters
actual:Throwable

the throwable to check suppressed exceptions.

expectedSuppressedException:Throwable

the expected suppressed exception.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.