@When("^I divide (\\d+) with (\\d+)$") public void i_div_with(int arg1, int arg2) throws Throwable { try { calculadora.divide(arg1, arg2); } catch (Throwable t) { throwable = t; } }
@Then("^the result should be (\\d+)$") public void the_result_should_be(int result) throws Throwable { assertEquals(result, calculadora.getResult()); }
@When("^I multiply (\\d+) with (\\d+)$") public void i_mult_with(int arg1, int arg2) throws Throwable { calculadora.multiply(arg1, arg2); }
@When("^I sum (\\d+) with (\\d+)$") public void i_sum_with(int arg1, int arg2) throws Throwable { calculadora.add(arg1, arg2); }