Hi Ronald thanks for the heads up. Fixed docs in latest reference:
http://jbehave.org/reference/latest/candidate-steps.html On 09/09/2010 10:52, Ronald Haring wrote: > Hello all, > > first of let me start with the usual 'Hurrays for this project', so here it > is, > 'Hurray' for JBehave. I have been reading through the documentation and it > seems > very clear to me. However on the following page: > http://jbehave.org/reference/stable/candidate-steps.html I think that an error > has crept into the documentation. > > It states that: > Hence, the following two methods are allowed to have the same regex pattern, > because they correspond to different step types: > @Given("a stock is traded at $price") > public void aStockWithPrice(double price) { > // ... > } > > @When("the stock is traded at $price") > public void theStockIsTradedAt(double price) { > // ... > } > > By contrast, the following would result in a runtime failure when running the > scenario: > view source > print? > @When("a stock is traded at $price") > public void aStockWithPrice(double price) { > // ... > } > > @When("the stock is traded at $price") > public void theStockIsTradedAt(double price) { > // ... > } > > However as I understand it, shouldnt the second annotations have the exact > same > description? So, in the code it should be @When("a stock is traded at $price") > instead of @When("the stock is traded at $price"). > > Regards > Ronald > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
