PublicationSteps.java 文件源码

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

项目:hippo 作者:
@Then("^I can see upcoming publications$")
public void iCanSeeUpcomingPublications() throws Throwable {

    final List<Publication> expectedPublications = testDataRepo.getPublications(UPCOMING);

    final List<UpcomingPublicationOverivewWidget> actualPublicationEntries =
        publicationsOverviewPage.getUpcomingPublicationsWidgets();

    assertThat("Should display correct quantity of upcoming publications.",
        actualPublicationEntries,
        hasSize(expectedPublications.size())
    );

    for (int i = 0; i < expectedPublications.size(); i++) {
        assertThat("Should display upcoming publication.",
            actualPublicationEntries.get(i),
            matchesUpcomingPublication(expectedPublications.get(i))
        );
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号