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
public class AbstractShouldHaveTextContent extends BasicErrorMessageFactory
Base class for text content error.
-
-
Constructor Summary
Constructors Constructor Description AbstractShouldHaveTextContent(String format, Object... arguments)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcreate(Description d, Representation representation)Creates a new error message as a result of a failed assertion.protected static StringdiffsAsString(List<Delta<String>> diffsList)-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Field Detail
-
diffs
protected String diffs
-
-
Method Detail
-
create
public String create(Description d, Representation representation)
Description copied from class:BasicErrorMessageFactoryCreates a new error message as a result of a failed assertion.- Specified by:
createin interfaceErrorMessageFactory- Overrides:
createin classBasicErrorMessageFactory- Parameters:
d- the description of the failed assertion.representation- the representation used- Returns:
- the created error message.
-
-