Stepdefs.java 文件源码

java
阅读 17 收藏 0 点赞 0 评论 0

项目:ohtu_miniprojekti 作者:
@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);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号