Details
Description
Given a textual step:
Then string is ''
the following test will fail:
@Then("string is '$params'") public void empty(List<String> params) { ensureThat(params.isEmpty(), equalTo(true)); }
A more likely scenario would be a table example:
Scenario: <Guess> marks as <Mark>
Given the secret r,g,y,b
When I guess [Guess]
Then I should get [Mark]
Examples:
|Guess|Mark|
|c,c,c,c||
|b,c,c,c|m|
where the first row would fail if Mark were compared to an empty List.
Activity
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Mauro Talevi [ maurotalevi ] | |
| Fix Version/s | 2.4 [ 15664 ] |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Thanks Cyril. I'll apply patch and release it in 2.4.