ErrorMessageFactory
ShouldHaveContent
, ShouldHaveSameContent
public class AbstractShouldHaveTextContent extends BasicErrorMessageFactory
Modifier and Type | Field | Description |
---|---|---|
protected String |
diffs |
arguments, format
Constructor | Description |
---|---|
AbstractShouldHaveTextContent(String format,
Object... arguments) |
Modifier and Type | Method | Description |
---|---|---|
String |
create(Description d,
Representation representation) |
Creates a new error message as a result of a failed assertion.
|
protected static String |
diffsAsString(List<Delta<String>> diffsList) |
create, create, equals, hashCode, toString, unquotedString
protected String diffs
public String create(Description d, Representation representation)
BasicErrorMessageFactory
create
in interface ErrorMessageFactory
create
in class BasicErrorMessageFactory
d
- the description of the failed assertion.Copyright © 2014–2019. All rights reserved.