public class DescriptionFormatter
extends java.lang.Object
Description
s to be included in assertion errors.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.
|
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 the Description
is null
.Copyright © 2007–2018. All rights reserved.