Package org.fest.assertions.error
Class AbstractShouldHaveTextContent
- java.lang.Object
-
- org.fest.assertions.error.BasicErrorMessageFactory
-
- org.fest.assertions.error.AbstractShouldHaveTextContent
-
- All Implemented Interfaces:
ErrorMessageFactory
- Direct Known Subclasses:
ShouldHaveContent
,ShouldHaveEqualContent
public class AbstractShouldHaveTextContent extends BasicErrorMessageFactory
Base class for text content error.- Author:
- Joel Costigliola
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
diffs
-
Fields inherited from class org.fest.assertions.error.BasicErrorMessageFactory
arguments, format
-
-
Constructor Summary
Constructors Constructor Description AbstractShouldHaveTextContent(java.lang.String format, java.lang.Object... arguments)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
create(Description d)
Creates a new error message as a result of a failed assertion.protected static java.lang.String
diffsAsString(java.util.List<java.lang.String> diffsList)
-
Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
equals, hashCode, toString
-
-
-
-
Method Detail
-
create
public java.lang.String create(Description d)
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.- Returns:
- the created error message.
-
diffsAsString
protected static java.lang.String diffsAsString(java.util.List<java.lang.String> diffsList)
-
-