If you write your step in textual scenario as below (no \n delimiter), it'll be interpreted correctly (automatically) as multi-line :
Then the result is The quick brown fox On 05/10/2010 13:21, sud wrote: > Hi all, > > I am looking for how to set a multi line input as a parameter in my > step method. So my story looks like below: > > Given a text wrapper of line width 10 > When I wrap the string The quick brown fox > Then the result is The quick \nbrown fox > > The string being passed into my @Then step method as the parameter is > > "Then the result is The quick \\nbrown fox" > > The "\" is being escaped out. Short of writing a custom parameter is > there is it possible to get JBehave to treat the "\n" without escaping > the "\". > > If the only way is to use a custom converter should I pass in each > line in the multi line string as a delimited value and use the custom > converter to replace the delimiter with "\n". > > Thanks inadvance for your help. > -sud >
