SfDbValidationSteps.java 文件源码

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

项目:syndesis-qe 作者:
@Then("^validate SF on delete to DB created new task with lead ID as task name")
public void validateLead() {
    final long start = System.currentTimeMillis();
    // We wait for exactly 1 record to appear in DB.
    final boolean contactCreated = TestUtils.waitForEvent(leadCount -> leadCount == 1, () -> dbUtils.getNumberOfRecordsInTable(RestConstants.getInstance().getTODO_APP_NAME()),
            TimeUnit.MINUTES,
            2,
            TimeUnit.SECONDS,
            5);
    Assertions.assertThat(contactCreated).as("Lead record has appeard in db").isEqualTo(true);
    log.info("Lead record appeared in DB. It took {}s to create contact.", TimeUnit.MILLISECONDS.toSeconds(System.currentTimeMillis() - start));
    // Now we verify, the created lead contains the correct personal information.
    Assertions.assertThat(getLeadTaskFromDb(leadId).toLowerCase()).isNotEmpty();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号