Wrap in quotes: When a client posts a response pattern of '1,0,0,0,0'
@When("a client posts a response pattern of '$value'")
public void whenAClientPostsValue(String value){
}
The same applies if you want to have a value with spaces.
On 13/02/2014 21:53, Corbin, J.D. wrote:
I have a scenario and I want to define a textual step as follows,
When a client posts a response pattern of 1,0,0,0,0
I know I can define a parameterized scenario and use Examples instead,
but I want the delimited 1's and 0's to be in the step definition. I
need it to match a step implementation that accepts a string.
I'm not sure how to force it to treat '1,0,0,0,0' as a single string
value.
I'm sure there is a way to do this.
J.D.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email