Package com.tngtech.jgiven.format.table
Class PlainRowFormatter
java.lang.Object
com.tngtech.jgiven.format.table.RowFormatter
com.tngtech.jgiven.format.table.PlainRowFormatter
Formats each row by just using the default formatting of an object.
This results in a table with just one column, where the header is the name of the parameter.
- Since:
- 0.10.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Factory for creating instances ofPlainRowFormatter
-
Constructor Summary
ConstructorDescriptionPlainRowFormatter
(Class<?> type, Table tableAnnotation, String columnHeader, Annotation[] annotations, FormatterConfiguration configuration, ObjectFormatter objectFormatter) -
Method Summary
Methods inherited from class com.tngtech.jgiven.format.table.RowFormatter
postProcess
-
Constructor Details
-
PlainRowFormatter
public PlainRowFormatter(Class<?> type, Table tableAnnotation, String columnHeader, Annotation[] annotations, FormatterConfiguration configuration, ObjectFormatter objectFormatter)
-
-
Method Details
-
header
Description copied from class:RowFormatter
Generates the header row of the data table- Specified by:
header
in classRowFormatter
-
formatRow
Description copied from class:RowFormatter
Generates a single row of the data table for the given object. This method is called for each object of the input.- Specified by:
formatRow
in classRowFormatter
-