Package com.tngtech.jgiven.format.table
Interface TableFormatter
- All Known Implementing Classes:
DefaultTableFormatter
public interface TableFormatter
Formatter that will format arguments as a table.
This formatter is used when a parameter is annotated with the
Table
annotation.- See Also:
-
Method Summary
-
Method Details
-
format
DataTable format(Object tableArgument, Table tableAnnotation, String parameterName, Annotation... allAnnotations) Generates aDataTable
from a given table argument- Parameters:
tableArgument
- the actual argument passed to the step methodtableAnnotation
- the annotation of the step method parameterparameterName
- the name of the step method parameterallAnnotations
- all annotations of the step method parameter, includingTable
- Returns:
- a DataTable instance that defines how the table should look in the report
-