Top Description Methods
org.assertj.core.error

public Interface AssertionErrorFactory

Known Direct Implementers
org.assertj.core.error.ShouldBeEqual
Annotations
@Deprecated
Imports
org.assertj.core.description.Description, org.assertj.core.presentation.Representation

Deprecated

don't use it or favor AssertionErrorCreator instead.

Factory of AssertionErrors.
Authors
Alex Ruiz, Yvonne Wang

Method Summary

Modifier and TypeMethod and Description
public AssertionError

Returns:

the created AssertionError.
newAssertionError
(Description
the description of the failed assertion.
description
,
Representation
the Representation used
representation
)

Creates an AssertionError.

Method Detail

newAssertionErrorback to summary
public AssertionError newAssertionError(Description description, Representation representation)

Creates an AssertionError.

Parameters
description:Description

the description of the failed assertion.

representation:Representation

the Representation used

Returns:AssertionError

the created AssertionError.