public class VendingMachineSteps
extends java.lang.Object
Constructor and Description |
---|
VendingMachineSteps() |
Modifier and Type | Method and Description |
---|---|
void |
anIsDispensed(java.lang.String fruit) |
void |
iEnterKr(int money) |
void |
iHaveEarnedKr(int earnedMoney) |
void |
iPressTheButtonFor(java.lang.String fruit) |
void |
krIsReturned(int restMoney) |
void |
noMoneyIsReturned() |
void |
theVendingMachineHasBananasAndApples(int numberOfBananas,
int numberOfApples) |
@Given(value="^the vending machine has (\\d+) bananas and (\\d+) apples$") public void theVendingMachineHasBananasAndApples(int numberOfBananas, int numberOfApples) throws java.lang.Exception
java.lang.Exception
@When(value="^I enter (\\d+) kr$") public void iEnterKr(int money) throws java.lang.Exception
java.lang.Exception
@When(value="^I press the button for \"([^\"]*)\"$") public void iPressTheButtonFor(java.lang.String fruit) throws java.lang.Exception
java.lang.Exception
@Then(value="^an \"([^\"]*)\" is dispensed$") public void anIsDispensed(java.lang.String fruit) throws java.lang.Exception
java.lang.Exception
@Then(value="^no money is returned$") public void noMoneyIsReturned() throws java.lang.Exception
java.lang.Exception
@Then(value="^I have earned (\\d+) kr$") public void iHaveEarnedKr(int earnedMoney) throws java.lang.Exception
java.lang.Exception
@Then(value="^(\\d+) kr is returned$") public void krIsReturned(int restMoney) throws java.lang.Exception
java.lang.Exception