|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.assertj.core.error.DescriptionFormatter
public class DescriptionFormatter
Formats the
s to be included in assertion errors.
Description
Method Summary | |
---|---|
String |
format(Description d)
Formats the given by surrounding its text value with square brackets and adding a space at
the end. |
static DescriptionFormatter |
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 DescriptionFormatter instance()
public String format(Description d)
Description
by surrounding its text value with square brackets and adding a space at
the end.
d
- the description to format. It can be null
.
String
if the the Description
is null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |