public class BasicErrorMessageFactory extends Object implements ErrorMessageFactory
| Modifier and Type | Field and Description |
|---|---|
protected Object[] |
arguments |
protected String |
format |
| Constructor and Description |
|---|
BasicErrorMessageFactory(String format,
Object... arguments)
Creates a new
BasicErrorMessageFactory. |
| Modifier and Type | Method and Description |
|---|---|
String |
create()
Creates a new error message as a result of a failed assertion without description.
|
String |
create(Description d,
Representation representation)
Creates a new error message as a result of a failed assertion.
|
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toString() |
protected static CharSequence |
unquotedString(String string)
Return a string who will be unquoted in message format (without '')
|
public BasicErrorMessageFactory(String format, Object... arguments)
BasicErrorMessageFactory.format - the format string.arguments - arguments referenced by the format specifiers in the format string.public String create(Description d, Representation representation)
create in interface ErrorMessageFactoryd - the description of the failed assertion.public String create()
create in interface ErrorMessageFactoryprotected static CharSequence unquotedString(String string)
string - the string who will be unquoted.ToString.quoteCopyright © 2013-2014 AssertJ. All Rights Reserved.