【发布时间】:2016-10-28 19:31:33
【问题描述】:
我想匹配以下任一 BDD:
Then the response status should be "200"
Then response status should be "200"
我想将“the”设为可选。我希望这两个规则映射到相同的步骤。
这是我的尝试,但它不起作用:
@Then("^(?:the | )response status should be \"([^\"]*)\"$")
public void the_response_status_should_be(String arg1) {
...
}
【问题讨论】:
标签: cucumber bdd cucumber-jvm gherkin cucumber-java