Package com.tngtech.jgiven.format.table
Class PlainRowFormatter
- java.lang.Object
-
- com.tngtech.jgiven.format.table.RowFormatter
-
- com.tngtech.jgiven.format.table.PlainRowFormatter
-
public class PlainRowFormatter extends RowFormatter
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:
Table
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PlainRowFormatter.Factory
Factory for creating instances ofPlainRowFormatter
-
Constructor Summary
Constructors Constructor Description PlainRowFormatter(java.lang.Class<?> type, Table tableAnnotation, java.lang.String columnHeader, java.lang.annotation.Annotation[] annotations, FormatterConfiguration configuration, ObjectFormatter objectFormatter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
formatRow(java.lang.Object object)
Generates a single row of the data table for the given object.java.util.List<java.lang.String>
header()
Generates the header row of the data table-
Methods inherited from class com.tngtech.jgiven.format.table.RowFormatter
postProcess
-
-
-
-
Constructor Detail
-
PlainRowFormatter
public PlainRowFormatter(java.lang.Class<?> type, Table tableAnnotation, java.lang.String columnHeader, java.lang.annotation.Annotation[] annotations, FormatterConfiguration configuration, ObjectFormatter objectFormatter)
-
-
Method Detail
-
header
public java.util.List<java.lang.String> header()
Description copied from class:RowFormatter
Generates the header row of the data table- Specified by:
header
in classRowFormatter
-
formatRow
public java.util.List<java.lang.String> formatRow(java.lang.Object object)
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
-
-