Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: David Tanner (JIRA) <jira-yCVjj/EcxBJg9hUCZPvPmw <at> public.gmane.org>
Subject: [jira] (JBEHAVE-788) Parsing recursive composite steps fail if the composite steps don't use any parameters
Newsgroups: gmane.comp.java.jbehave.devel
Date: Wednesday 6th June 2012 20:55:21 UTC (over 4 years ago)

http://www.codehaus.org/codehaus-small.gif" alt="" style="vertical-align:top;" />
https://jira.codehaus.org/secure/useravatar?avatarId=10232" alt="" height="48" width="48" border="0" align="left" style="padding:0;margin: 0 16px 16px 0;" />
https://jira.codehaus.org/secure/ViewProfile.jspa?name=darthtanner" style="color:#005500;">David Tanner created https://jira.codehaus.org/images/icons/bug.gif" height="16" width="16" border="0" align="absmiddle" alt="Bug"> JBEHAVE-788
Issue Type: https://jira.codehaus.org/images/icons/bug.gif" height="16" width="16" border="0" align="absmiddle" alt="Bug"> 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: https://jira.codehaus.org/browse/JBEHAVE">JBehave
Priority: https://jira.codehaus.org/images/icons/priority_major.gif" height="16" width="16" border="0" align="absmiddle" alt="Major"> Major
Reporter: https://jira.codehaus.org/secure/ViewProfile.jspa?name=darthtanner" style="color:#005500;">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
 
CD: 20ms