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:
    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 a DataTable 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 a DataTable from a given table argument
        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