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 the AbstractJGivenConfiguration
class.
-
Method Summary
Modifier and TypeMethodDescriptionformat
(T argumentToFormat, Annotation... annotations) Formats a step method argument.
-
Method Details
-
format
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
-