Package com.tngtech.jgiven.format.table
Class DefaultTableFormatter
java.lang.Object
com.tngtech.jgiven.format.table.DefaultTableFormatter
- All Implemented Interfaces:
TableFormatter
The default implementation to format a table argument
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDefaultTableFormatter
(FormatterConfiguration formatterConfiguration, ObjectFormatter<?> objectFormatter) -
Method Summary
-
Field Details
-
DEFAULT_NUMBERED_HEADER
- See Also:
-
-
Constructor Details
-
DefaultTableFormatter
public DefaultTableFormatter(FormatterConfiguration formatterConfiguration, ObjectFormatter<?> objectFormatter)
-
-
Method Details
-
format
public DataTable format(Object tableArgument, Table tableAnnotation, String parameterName, Annotation... allAnnotations) Description copied from interface:TableFormatter
Generates aDataTable
from a given table argument- Specified by:
format
in interfaceTableFormatter
- 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
-