public class DescriptionFormatter extends Object
Description
s to be included in assertion errors.Modifier and Type | Method and Description |
---|---|
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 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 © 2013–2018 AssertJ. All rights reserved.