@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));
}
TopologyEventsBasicTest.java 文件源码
java
阅读 18
收藏 0
点赞 0
评论 0
项目:open-kilda
作者:
评论列表
文章目录