Class FieldBasedRowFormatter.Factory

java.lang.Object
com.tngtech.jgiven.format.table.FieldBasedRowFormatter.Factory
All Implemented Interfaces:
RowFormatterFactory
Enclosing class:
FieldBasedRowFormatter

public static class FieldBasedRowFormatter.Factory extends Object implements RowFormatterFactory
Factory for creating instances of FieldBasedRowFormatter
Since:
0.9.6
See Also:
  • Constructor Details

    • Factory

      public Factory()
  • 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