StepPattern to encapsulate both annotated and resolved patterns and report to the StepMonitor

Description

Currently, only the resolved regex pattern is reported to the StepMonitor, e.g.

stepMatchesPattern(String step, boolean matches, String pattern, Method method, Object stepsInstance)

where is step is:

matching steps were coded in English to make it easier for people to understand

the resolved regex pattern is:

matching\s+steps\s+were\s+coded\s+in\s+(.*)\s+to\s+make\s+it\s+easier\s+for\s+people\s+to\s+understand

It's also useful to report the annotated pattern:

matching steps were coded in $language to make it easier for people to understand

A new StepPattern model class should encapsultate both annotated and resolved patterns, and the method should thus read:

stepMatchesPattern(String step, boolean matches, StepPattern pattern, Method method, Object stepsInstance)

Assignee

Mauro Talevi

Reporter

Paul Hammant

Labels

None

Components

Fix versions

Priority

Minor
Configure