Hello, 

I hoped to use patterns to provide some flexibility to our project managers 
that would allow them to use first or second person, or none at all. For 
example:

When the user clicks the button
Then you click the button
Then click the button

I wanted for all of the above to match the same class:

@Step
@When("{you|the user|} click{s|} the button")
@Then("{you|the user|} click{s|} the button")
public void ClickTheButton() {
}

What I discovered is that leading whitespace is significant, so the above 
would never match "Then click the button" but would match "Then you click 
the button"

I don't see a use case for whitespace being significant and assumed it was 
normalized -- leading and trailing whitespace removed and all other 
whitespace reduced to a single space character.

At this point maybe only a global property would provide backward 
compatibility. 

Any thoughts? 

Thank you,
Hank

-- 
You received this message because you are subscribed to the Google Groups 
"JBehave User" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/jbehave-user/c002eae6-7e76-4ce7-bf5e-3f18fde0560d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to