@Then("^Am I hungry\\? \"([^\"]*)\"$") public void amIHungry(String hungry) { assertEquals(belly.isHungry(), Boolean.parseBoolean(hungry)); }
@When("^I eat (\\d+) cukes$") public void eatCukes(int cukes) { belly.setCukes((belly.getCukes() - cukes)); }
@Given("^I have (\\d+) cukes$") public void haveCukes(int cukes) { belly.setCukes(cukes); }
@Given("^I have (\\d+) cukes in my belly$") public void I_have_cukes_in_my_belly(int cukes) throws Throwable { Belly belly = new Belly(); belly.eat(cukes); }
@Then("^my belly should growl as (.*)$") public void my_belly_should_growl(String arg) throws Throwable { Belly belly = new Belly(); belly.growl(arg); }
@When("^I wait (\\d+) hour$") public void i_wait_hour(int arg1) throws Throwable { Belly belly = new Belly(); belly.wait(arg1); }