Reputation: 185
I have a method which returns Mono. So I try to user step verifier to do a integrate test.
public Mono<Void> process(InputBody body) {
retrun webClient
.post()
.uri("/submit")
.body(Mono.just(body), InputBody .class)
.retrieve()
.bodyToMono(Void.class)
.subscribe()
}
I want to do a integrate test for this.
my question is, when we use Web Client Test how to return mono void and step verify it?
webClient
.post()
.uri("/submit")
.body(Mono.just(body), InputBody .class)
.exchange()
.........
how to complete things? I tried but failed.
Upvotes: 0
Views: 479