Package org.assertj.core.error
Class AbstractShouldHaveTextContent
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.AbstractShouldHaveTextContent
- All Implemented Interfaces:
ErrorMessageFactory
- Direct Known Subclasses:
ShouldHaveContent
,ShouldHaveSameContent
Base class for text content error.
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(Description d, Representation representation) Creates a new error message as a result of a failed assertion.protected static String
diffsAsString
(List<Delta<String>> diffsList) Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, equals, hashCode, toString, unquotedString
-
Field Details
-
diffs
-
-
Constructor Details
-
AbstractShouldHaveTextContent
-
-
Method Details
-
create
Description copied from class:BasicErrorMessageFactory
Creates a new error message as a result of a failed assertion.- Specified by:
create
in interfaceErrorMessageFactory
- Overrides:
create
in classBasicErrorMessageFactory
- Parameters:
d
- the description of the failed assertion.representation
- the representation used- Returns:
- the created error message.
-
diffsAsString
-