Package com.tngtech.jgiven.format.table
Class RowFormatter
java.lang.Object
com.tngtech.jgiven.format.table.RowFormatter
- Direct Known Subclasses:
FieldBasedRowFormatter
,PlainRowFormatter
Formats the rows of a data table.
- Since:
- 0.10.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGenerates a single row of the data table for the given object.header()
Generates the header row of the data tablepostProcess
(List<List<String>> table) Allows for post processing the resulting data table.
-
Constructor Details
-
RowFormatter
public RowFormatter()
-
-
Method Details
-
header
Generates the header row of the data table -
formatRow
Generates a single row of the data table for the given object. This method is called for each object of the input. -
postProcess
Allows for post processing the resulting data table. The default implementation just returns the provided list- Parameters:
table
- the table that has been generated by calls to theheader()
and theformatRow(Object)
methods- Returns:
- a potentially new table or just the passed table
-