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

public Class AbstractShouldHaveTextContent

extends BasicErrorMessageFactory
Class Inheritance
Known Direct Subclasses
org.assertj.core.error.ShouldHaveContent, org.assertj.core.error.ShouldHaveSameContent
Static Imports
java.util.stream.Collectors.joining

Base class for text content error.

Field Summary

Modifier and TypeField and Description
protected String
Inherited from org.assertj.core.error.BasicErrorMessageFactory:
argumentsformatformatter

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
create(Description
the description of the failed assertion.
d
,
Representation
the representation used
representation
)

Overrides org.assertj.core.error.BasicErrorMessageFactory.create.

Implements org.assertj.core.error.ErrorMessageFactory.create.

Creates a new error message as a result of a failed assertion.
protected static String
Inherited from org.assertj.core.error.BasicErrorMessageFactory:
createcreateequalshashCodetoStringunquotedString

Field Detail

diffsback to summary
protected String diffs

Constructor Detail

AbstractShouldHaveTextContentback to summary
public AbstractShouldHaveTextContent(String format, Object... arguments)

Method Detail

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

Overrides org.assertj.core.error.BasicErrorMessageFactory.create.

Implements org.assertj.core.error.ErrorMessageFactory.create.

Doc from org.assertj.core.error.BasicErrorMessageFactory.create.

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

Parameters
d:Description

Doc from org.assertj.core.error.ErrorMessageFactory.create.

the description of the failed assertion.

representation:Representation

Doc from org.assertj.core.error.ErrorMessageFactory.create.

the representation used

Returns:String

Doc from org.assertj.core.error.ErrorMessageFactory.create.

the created error message.

Annotations
@Override
diffsAsStringback to summary
protected static String diffsAsString(List<Delta<String>> diffsList)