You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then I see these colors:
| color | | RED | | YELLOW | | BLUE |
and I have an enum that reads
publicstaticenumColor {
RED, YELLOW, BLUE
}
then in the step definition I want to do something like:
@Then("^I see the following colors$")
publicvoidI_see_the_following_colors(List<Color> colors) {
}
Currently I get:
cucumber.runtime.CucumberException: Can't assign null value to one of the primitive fields in com.Color ColorStepDefinitions$color. Please use boxed types.
It would be great if the behavior would mimic what is being done for classes, as in the shopping cart example in hello world and just do the conversion for me.
The text was updated successfully, but these errors were encountered:
Let's say I have a test that reads:
and I have an enum that reads
then in the step definition I want to do something like:
Currently I get:
It would be great if the behavior would mimic what is being done for classes, as in the shopping cart example in hello world and just do the conversion for me.
The text was updated successfully, but these errors were encountered: