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 theTable
annotation.- See Also:
Table
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataTable
format(java.lang.Object tableArgument, Table tableAnnotation, java.lang.String parameterName, java.lang.annotation.Annotation... allAnnotations)
Generates aDataTable
from a given table argument
-
-
-
Method Detail
-
format
DataTable format(java.lang.Object tableArgument, Table tableAnnotation, java.lang.String parameterName, java.lang.annotation.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
-
-