Java Cucumber无法识别我的字符串参数
Cucumber无法识别字符串参数,我想将其用作货币。它只识别int值。(它查找步骤,因为其他步骤有效) 它显示以下错误消息:Java Cucumber无法识别我的字符串参数,java,junit,cucumber,cucumber-java,cucumber-junit,Java,Junit,Cucumber,Cucumber Java,Cucumber Junit,Cucumber无法识别字符串参数,我想将其用作货币。它只识别int值。(它查找步骤,因为其他步骤有效) 它显示以下错误消息: There were undefined steps. You can implement missing steps with the snippets below: @When("I deposit {int} of GBP") public void i_deposit_of_GBP(Integer int1) { // Write code here
There were undefined steps. You can implement missing steps with the snippets below:
@When("I deposit {int} of GBP")
public void i_deposit_of_GBP(Integer int1) {
// Write code here that turns the phrase above into concrete actions
throw new cucumber.api.PendingException();
}
@Then("My balance is {int} of GBP")
public void my_balance_is_of_GBP(Integer int1) {
// Write code here that turns the phrase above into concrete actions
throw new cucumber.api.PendingException();
}
- 假设我创建了一个帐户
- 当我存入100英镑时
- 那么我的余额是100英镑
@When("I deposit {int} of {word}")
@When("I deposit {int} of {word}")