David Tanner (JIRA | 6 Jun 22:55 2012

[jira] (JBEHAVE-788) Parsing recursive composite steps fail if the composite steps don't use any parameters

Issue Type: Bug
Affects Versions: 3.6.4
Assignee: Unassigned
Attachments: CorrectedMethod.txt, JBehave Test Case.txt
Components: Core
Created: 06/Jun/12 3:54 PM
Description:

Problem Statement:
When I have a composite step that takes parameters for some of the steps but not others, then the StepCreator doesn't take that into account, and the Matcher throws and IllegalState exception because it has no groups.

Steps to Reproduce:
See attached TestCase

Recommended Change:
Only two changes in the StepCreator class, matchedParameters method.
Move the Hashmap creation to the beginning of the method, and put an if statement around the stepMatcher.find() statement. See altered method also attached.

Project: JBehave
Priority: Major
Reporter: David Tanner
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

Gmane