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
Mauro Talevi
made changes -
Field | Original Value | New Value |
---|---|---|
Assignee | Mauro Talevi [ maurotalevi ] | |
Fix Version/s | 2.4 [ 15664 ] |
Mauro Talevi
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Thanks Cyril. I'll apply patch and release it in 2.4.