public class DescriptionFormatter
extends java.lang.Object
Descriptions to be included in assertion errors.| Modifier and Type | Field and Description |
|---|---|
private static DescriptionFormatter |
INSTANCE |
| Constructor and Description |
|---|
DescriptionFormatter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.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.
|
private static final DescriptionFormatter INSTANCE
public static DescriptionFormatter instance()
public java.lang.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 Description is null.