cucumber/cucumber-jvm — Issue #87: Add support for List of primitives in StepDefs
Author: mmalmeida
Created: 2011-11-11 12:29:20+00:00
State: open

From https://groups.google.com/forum/#!topic/cukes/bwjOiN7zeeU :

Consider the following feature:

Given this stuff:
|X|Y|Z|
|1|B|2011-01-01 12:00|
|2|B|2011-01-01 19:00|
When I ask for some stuff
Then the order by which it is shown is:
|2|
|1|

The following stepDef should work:

@Then("^the order by which it is shown is:$")
public void the_order_by_which_they_are_show_is(List expectedOrder) {}

There is currently no support for List of primitives as StepDef's parameters