When @Named parameter matches name in Example table, it might be injected for steps that do not reference it

Description

When a step with @Named parameters is used in a scenario that uses an Example table for SOME of its steps, but for this specific step is given some explicit value, then IF the parameter name is not fully surrounded with whitespace AND it matches a name from the Examples table, then the given value is ignored. Instead, the value from the Examples table is injected.

If the parameter name is unrelated to anything in the Examples table, then all is fine, even when the parameter is not fully surrounded with whitespace.

(This is slightly related to http://jira.codehaus.org/browse/JBEHAVE-646)

For example, all fine:

...but wrong:

...when used with:

Assignee

Unassigned

Reporter

Arjan van Bentem

Labels

None

Components

Affects versions

Priority

Major
Configure