|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fest.assertions.Formatting
public final class Formatting
Provides utility methods related to formatting.
| Method Summary | |
|---|---|
static String |
format(Description description,
String message)
Returns the given message formatted as follows: [description] message. |
static String |
format(String message)
Formats the given message: if it is null or empty, an empty String is returned,
otherwise uses the following format:
[message]{whitespace}
|
static String |
inBrackets(Object o)
Returns the String representation of the given object in between brackets ("<" and ">"). |
static String |
valueOf(Description description)
Returns the value of the given . |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String format(Description description,
String message)
[description] message.
description - the description of the actual value in the failed assertion. It can be null.message - the message to format.
public static String valueOf(Description description)
Description.
description - the given Description.
Description, or null if the given Description
is null.public static String format(String message)
null or empty, an empty String is returned,
otherwise uses the following format:
[message]{whitespace}
message - the message to format.
public static String inBrackets(Object o)
String representation of the given object in between brackets ("<" and ">"). This method
has special support for arrays, Class>, Collections, Maps,
Files and Dimensions. For any other types, this method simply calls its
toString implementation.
o - the given object.
String representation of the given object in between brackets.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||