[jbehave-user] Re: Can I reuse stories with two different implementations?

2012-01-05 Thread Sheldon
On 1/4/12 3:09 PM, Mauro Talevi wrote: Hi Sheldon, the recommended way to approach your problem would be to inject both service builder impls and then have a parameter to determine which is going to be used. E.g. Given I use the [HTTP or JMS] protocol The protocol would be stored in a member

Re: [jbehave-user] Re: Can I reuse stories with two different implementations?

2012-01-05 Thread Mauro Talevi
If you want to run the same story but passing in a different parameter for each run, one option to create a new uber-story that executes the stories as given stories. http://jbehave.org/reference/stable/given-stories.html Something along these lines: Scenario: A scenario that verifies

[jbehave-user] Re: Can I reuse stories with two different implementations?

2012-01-05 Thread Sheldon
On 1/5/12 10:10 AM, Sheldon wrote: On 1/4/12 3:09 PM, Mauro Talevi wrote: Hi Sheldon, the recommended way to approach your problem would be to inject both service builder impls and then have a parameter to determine which is going to be used. E.g. Given I use the [HTTP or JMS] protocol The

[jbehave-user] Re: Can I reuse stories with two different implementations?

2012-01-05 Thread Sheldon
On 1/5/12 11:14 AM, Sheldon wrote: On 1/5/12 10:10 AM, Sheldon wrote: On 1/4/12 3:09 PM, Mauro Talevi wrote: Hi Sheldon, the recommended way to approach your problem would be to inject both service builder impls and then have a parameter to determine which is going to be used. E.g. Given I

[jbehave-user] Re: Can I reuse stories with two different implementations?

2012-01-04 Thread Sheldon
On 1/4/12 3:09 PM, Mauro Talevi wrote: Hi Sheldon, the recommended way to approach your problem would be to inject both service builder impls and then have a parameter to determine which is going to be used. E.g. Given I use the [HTTP or JMS] protocol The protocol would be stored in a member