@AsParameters tables are not formatted

Description

Custom type parameter List is not formatted as html table, only as plain string (e.g.: |cell1|cell2|).

For example:
@AsParameters
class SampleParameterClass {
..
}

@Given
public void sampleGiven(List<SampleParameterClass> params) {
..
}

Would result a non formatted table.

I think the problem is in the StepCreator#isTable method, because the input Type is a List, but List.class.isAssignatleFrom(ExamplesTable.class) is not true, but it is a table!

Workaround is to replace List<SampleParameterClass> to ExamplesTable parameter in your method and call the getRowAs(SampleParameterClass.class) on the ExamplesTable.

Assignee

Unassigned

Reporter

Bence Olah

Labels

None

Components

Affects versions

Priority

Major
Configure