Parsing recursive composite steps fail if the composite steps don't use any parameters

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.

Assignee

Mauro Talevi

Reporter

David Tanner

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure