@Then("^message \"([^\"]*)\" is displayed$")
public void message_is_displayed(String expectedOutput) throws Throwable {
// Cucumber on outo olento
expectedOutput = expectedOutput.replace("\\n", "\n");
boolean found = false;
for (String print : io.getPrints()) {
if (print.contains(expectedOutput)) {
found = true;
}
}
assertTrue(found);
}
Stepdefs.java 文件源码
java
阅读 17
收藏 0
点赞 0
评论 0
项目:ohtu_miniprojekti
作者:
评论列表
文章目录