Example #1
0
 @Then("^the total price should be (\\d+)c$")
 public void theTotalPriceShouldBeC(int total) throws Throwable {
   assertEquals(total, checkout.total());
 }
Example #2
0
 @When("^I checkout (\\d+) \"(.*?)\"$")
 public void iCheckout(int itemCount, String itemName) throws Throwable {
   checkout = new Checkout();
   checkout.add(itemCount, bananaPrice);
 }