Class DefaultTableFormatter

java.lang.Object
com.tngtech.jgiven.format.table.DefaultTableFormatter
All Implemented Interfaces:
TableFormatter

public class DefaultTableFormatter extends Object implements TableFormatter
The default implementation to format a table argument
  • Field Details

  • Constructor Details

  • Method Details

    • format

      public DataTable format(Object tableArgument, Table tableAnnotation, String parameterName, Annotation... allAnnotations)
      Description copied from interface: TableFormatter
      Generates a DataTable from a given table argument
      Specified by:
      format in interface TableFormatter
      Parameters:
      tableArgument - the actual argument passed to the step method
      tableAnnotation - the annotation of the step method parameter
      parameterName - the name of the step method parameter
      allAnnotations - all annotations of the step method parameter, including Table
      Returns:
      a DataTable instance that defines how the table should look in the report