|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fest.assertions.error.MessageFormatter
public class MessageFormatter
Formats the messages to be included in assertion errors.
| Method Summary | |
|---|---|
String |
format(Description d,
String format,
Object... args)
Interprets a printf-style format String for failed assertion messages. |
static MessageFormatter |
instance()
Returns the singleton instance of this class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static MessageFormatter instance()
public String format(Description d,
String format,
Object... args)
String for failed assertion messages. It is similar to
String.format(String, Object...), except for:
Description is used as the first argument referenced in the format stringString by invoking
ToString.toStringOf(Object).
d - the description of the failed assertion, may be null.format - the format string.args - arguments referenced by the format specifiers in the format string.
String.
NullPointerException - if the format string is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||