If I have a feature that looks like this:
Feature: My feature
Scenario Outline: My scenario outline.
Given foo
When bar
Then I get the status code "<Status Code>".
Examples:
| StatusCode |
| 200 |
and a step definition like this:
@Then("I get the status code {int}.")
Cucumber complains and says that the step is undefined, because it's expecting the type to be {string}. Is there a way to specify the type in the feature or the example table? I've looked into the TypeRegistryConfiguration but I can't work out how to make it work with feature files.
<Status Code>not"<Status Code>".\"{int}\"if the quotes are important.public void i_get_the_status_code(Integer expectedStatusCode). If I put the quotes back, it stops working with the same error, so they do seem to be the problem.