Issue Type: Bug Bug
Affects Versions: 3.9
Assignee: Unassigned
Components: Core
Created: 24/Jan/14 9:12 AM
Description:

Upgrading from 3.8 to 3.9 broke some of our stories.

If I run the following destilled.story:
Scenario: s1
Given given1 param

Scenario: s2
Given given2 param

With the following steps class:
public class DestilledSteps {
@Given("given1 $param")
public void given1(String param)

{ System.out.printf("--given1(%s)--%n", param); }

@Given("given2 $paramWithNumberAtEnd1")
public void given2(String param)

{ System.out.printf("--given2(%s)--%n", param); }

}

I get the following output:
Scenario: s1
-given1(param)-
Given given1 param

Scenario: s2
Given given2 param (PENDING)
@Given("given2 param")
@Pending
public void givenGiven2Param()

{ // PENDING }

what feels like a bug to me.
The first scenario works as expected, while the second has a pending step.

With 3.8 one could use parameters like "$1".
Workaround: use parameters without digits.

Project: JBehave
Priority: Minor Minor
Reporter: Frank Neblung
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to