Package com.tngtech.jgiven.format
Interface Formatter<T>
-
- Type Parameters:
T
- the type of the object to format
- All Known Implementing Classes:
DefaultFormatter
,DefaultObjectFormatter
public interface Formatter<T>
Interface for defining a global argument formatter.Instances of this formatter can be globally configured with the
JGivenConfiguration
by providing concrete implementation of theAbstractJGivenConfiguration
class.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
format(T argumentToFormat, java.lang.annotation.Annotation... annotations)
Formats a step method argument.
-
-
-
Method Detail
-
format
java.lang.String format(T argumentToFormat, java.lang.annotation.Annotation... annotations)
Formats a step method argument.- Parameters:
argumentToFormat
- the argument object to formatannotations
- list of annotations that the method parameter is annotated with- Returns:
- a formatted string
-
-