Class DefaultRowFormatterFactory

java.lang.Object
com.tngtech.jgiven.format.table.DefaultRowFormatterFactory
All Implemented Interfaces:
RowFormatterFactory

public class DefaultRowFormatterFactory extends Object implements RowFormatterFactory
Default RowFormatterFactory that evaluates the Table.objectFormatting() attribute to create a RowFormatter.
Since:
0.10.0
See Also:
  • Constructor Details

    • DefaultRowFormatterFactory

      public DefaultRowFormatterFactory()
  • Method Details

    • create

      public RowFormatter create(Class<?> parameterType, String parameterName, Table tableAnnotation, Annotation[] annotations, FormatterConfiguration configuration, ObjectFormatter<?> objectFormatter)
      Description copied from interface: RowFormatterFactory
      Creates a new RowFormatter instance.
      Specified by:
      create in interface RowFormatterFactory
      Parameters:
      parameterType - the type of the table parameter
      parameterName - the name of the table parameter
      tableAnnotation - the Table annotation of the parameter
      annotations - all annotations of the table parameter including the Table annotation
      configuration - the formatter configuration
      objectFormatter - the standard object formatter that would be used by JGiven
      Returns:
      an instance of RowFormatter