我有两个步骤有一些相似之处,但并不完全以相同的方式表达。但是,IntelliJ 一直要求我在它们之间进行选择,就好像它们是重复的一样,不知道为什么?
@And("^I add \"([^\"]*)\" as the history|comment|details for the item$")
public void iAddAsTheHistoryForTheItem(String text) {
addComment(text);
}
@Then("^I am able to add a history|comment|details to the item$")
public void iAmAbleToAddAHistoryToTheItem() {
addHistory();
assertFalse(isHistoryClean());
}
谢谢你。
