Auto-generate method stubs for pending steps with no parameters

Description

Auto-generate method stubs with no parameters. The steps such as

Given there is a flight
And there is a customer
When the customer books the flight
Then the customer is shown on the manifest

would generate Java methods like this:

@Given("there is a flight")
@Pending
public void givenThereIsAFlight() {
}

@Given("there is a customer") // note 'Given', even though story line is 'And'
@Pending
public void givenThereIsACustomer() {
}

@When("the customer books the flight")
@Pending
public void whenTheCustomerBooksTheFlight() {
}

@Then("the customer is shown on the flight manifest")
@Pending
public void thenTheCustomerIsShownOnTheFlightManifest() {
}

If @Pending annotated methods are already matched the methods should not be re-generated.

Assignee

Mauro Talevi

Reporter

Mauro Talevi

Labels

None

Components

Fix versions

Priority

Major
Configure