автоматически генерирует заглушки метода-кандидата из сценариев stext в JBehave.

Я использую Jbehave в качестве инфраструктуры BDD. Я ищу способ автоматически генерировать заглушки метода шага кандидата из текстовых сценариев, таких как

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

, в Java, например:

<@> 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() {
}

Предоставляет ли JBeve это как неявную функциональность, или люди используют какой-либо плагин IDE? Я буду очень признателен за любую помощь здесь.

6
задан Bhuvnesh Pratap 4 January 2012 в 07:54
поделиться