TopologyEventsBasicTest.java 文件源码

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

项目:open-kilda 作者:
@Then("^now amount of switches is (\\d+)\\.$")
public void the_switch_appears_in_the_topology_engine(int switches) throws Exception {
    List<SwitchInfoData> switchList = SwitchesUtils.dumpSwitches();
    List<SwitchInfoData> activeSwitches = switchList.stream()
            .filter(sw -> sw.getState() == SwitchState.ACTIVATED)
            .collect(Collectors.toList());

    assertThat("Switch should disappear from neo4j", activeSwitches.size(), is(switches));
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号