I am using Jbehave as my BDD framework. I am looking for a way to auto generate candidate step method stubs from the text scenarios like
Given there is a flight
And there is a customer
When the customer books the flight
Then the customer is shown on the manifest
to Java like this:
<@> Given("there is a flight")
<a@> Pending
public void thereIsAFlight() {
}
<@> Given("there is a customer") // note 'Given', even though story line is 'And'
<@> Pending
public void thereIsACustomer() {
}
<@> When("the customer books the flight")
<@> Pending
public void theCustomerBooksTheFlight() {
}
<@> Then("the customer is shown on the flight manifest")
<@> Pending
public void thenTheCustomerIsShownOnTheFlightManifest() {
}
Does JBehave provide it as an implicit functionality or people use some IDE plugin ? I'll highly appreciate any help here.