use of gherkin.formatter.model.DataTableRow in project cucumber-jvm by cucumber.
the class CucumberScenarioOutlineTest method allows_data_table_entries_to_be_empty_after_replacement.
@Test
public void allows_data_table_entries_to_be_empty_after_replacement() {
List<DataTableRow> rows = asList(new DataTableRow(C, asList("<entry>"), 1));
Step outlineStep = new Step(C, null, "Some step", 0, rows, null);
Step exampleStep = CucumberScenarioOutline.createExampleStep(outlineStep, new ExamplesTableRow(C, asList("entry"), 1, ""), new ExamplesTableRow(C, asList(""), 1, ""));
assertEquals(asList(""), exampleStep.getRows().get(0).getCells());
}
use of gherkin.formatter.model.DataTableRow in project cucumber-jvm by cucumber.
the class FromDataTableTest method transposedListOfDoublesWithoutHeader.
private List<DataTableRow> transposedListOfDoublesWithoutHeader() {
List<DataTableRow> rows = new ArrayList<DataTableRow>();
rows.add(new DataTableRow(NO_COMMENTS, asList("100.5", "0.5", "1000"), 1));
rows.add(new DataTableRow(NO_COMMENTS, asList("99.5", "-0.5", "999"), 2));
return rows;
}
use of gherkin.formatter.model.DataTableRow in project cucumber-jvm by cucumber.
the class FromDataTableTest method transposedListOfDatesAndCalWithHeader.
private List<DataTableRow> transposedListOfDatesAndCalWithHeader() {
List<DataTableRow> rows = new ArrayList<DataTableRow>();
rows.add(new DataTableRow(NO_COMMENTS, asList("Birth Date", "1957-05-10", ""), 1));
rows.add(new DataTableRow(NO_COMMENTS, asList("Death Cal", "1979-02-02", ""), 2));
return rows;
}
use of gherkin.formatter.model.DataTableRow in project cucumber-jvm by cucumber.
the class FromDataTableTest method listOfDatesAndCalWithHeader.
private List<DataTableRow> listOfDatesAndCalWithHeader() {
List<DataTableRow> rows = new ArrayList<DataTableRow>();
rows.add(new DataTableRow(NO_COMMENTS, asList("Birth Date", "Death Cal"), 1));
rows.add(new DataTableRow(NO_COMMENTS, asList("1957-05-10", "1979-02-02"), 2));
rows.add(new DataTableRow(NO_COMMENTS, asList("", ""), 3));
return rows;
}
use of gherkin.formatter.model.DataTableRow in project cucumber-jvm by cucumber.
the class FromDataTableTest method transposedListOfDatesWithHeader.
private List<DataTableRow> transposedListOfDatesWithHeader() {
List<DataTableRow> rows = new ArrayList<DataTableRow>();
rows.add(new DataTableRow(NO_COMMENTS, asList("Birth Date", "1957-05-10"), 1));
return rows;
}
Aggregations