【发布时间】:2021-06-17 20:19:59
【问题描述】:
我正在使用 SpringWebflux 进行一些测试。
我在 IDE 中获得了一个亮点,即“未完成的步骤验证器”
这是我的代码:
@Test
public void findAllNextMatches() {
StepVerifier
.create(repo.findAll())
.expectNextMatches(u -> u.getId()
.equals(cust1.getId()))
.expectComplete();
}
IntellijIdea 突出显示“expectComplete”,并抱怨说:“Unfinished Step Verifier”。
我怎样才能正确地完成测试,以避免上面的称赞?
非常感谢,提前
【问题讨论】:
标签: spring-webflux project-reactor spring-test