Class DefaultTableFormatter

  • All Implemented Interfaces:
    TableFormatter

    public class DefaultTableFormatter
    extends java.lang.Object
    implements TableFormatter
    The default implementation to format a table argument
    • Field Detail

      • DEFAULT_NUMBERED_HEADER

        public static final java.lang.String DEFAULT_NUMBERED_HEADER
        See Also:
        Constant Field Values
    • Method Detail

      • format

        public DataTable format​(java.lang.Object tableArgument,
                                Table tableAnnotation,
                                java.lang.String parameterName,
                                java.lang.annotation.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