cucumber.table
Class DataTable
java.lang.Object
cucumber.table.DataTable
public class DataTable
- extends Object
DataTable
public DataTable(List<gherkin.formatter.model.DataTableRow> gherkinRows,
TableConverter tableConverter)
create
public static DataTable create(List<?> raw)
raw
public List<List<String>> raw()
asList
public <T> List<T> asList(Type listType)
toTable
public DataTable toTable(List<?> raw)
diff
public void diff(List<?> other)
throws TableDiffException
- Diffs this table with
other
, which can be a List<List<String>>
or a
List<YourType>
.
- Parameters:
other
- the other table to diff with.
- Throws:
TableDiffException
- if the tables are different.
diff
public void diff(DataTable other)
throws TableDiffException
- Diffs this table with
other
.
- Parameters:
other
- the other table to diff with.
- Throws:
TableDiffException
- if the tables are different.
getGherkinRows
public List<gherkin.formatter.model.DataTableRow> getGherkinRows()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012. All Rights Reserved.