Top Description Methods
org.assertj.core.error

public Interface ErrorMessageFactory

Known Direct Implementers
org.assertj.core.error.BasicErrorMessageFactory
Imports
org.assertj.core.description.Description, org.assertj.core.presentation.Representation, .StandardRepresentation

Factory of error messages.
Author
Alex Ruiz

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the created error message.
create
(Description
the description of the failed assertion.
d
,
Representation
the representation used
p
)

Creates a new error message as a result of a failed assertion.

public String

Returns:

the created error message.
create
(Description
the description of the failed assertion.
d
)

Creates a new error message as a result of a failed assertion with StandardRepresentation.

public String

Returns:

the created error message.
create
()

Creates a new error message as a result of a failed assertion without description.

Method Detail

createback to summary
public String create(Description d, Representation p)

Creates a new error message as a result of a failed assertion.

Parameters
d:Description

the description of the failed assertion.

p:Representation

the representation used

Returns:String

the created error message.

createback to summary
public String create(Description d)

Creates a new error message as a result of a failed assertion with StandardRepresentation.

Parameters
d:Description

the description of the failed assertion.

Returns:String

the created error message.

createback to summary
public String create()

Creates a new error message as a result of a failed assertion without description.

Returns:String

the created error message.