i wrote a test for Handler (spring weblux)
test:
@Test
public void checkServicesHandlerTest(){
Request request = new Request();
request.setMsisdn("ffdfdfd");
this.testClient.post().uri("/check")
.body(Mono.just(request), Request.class).exchange().expectStatus().isOk();
}
But in result i have an error.
Timeout on blocking read for 5000 MILLISECONDS
the handler is simple
public Mono<ServerResponse> check(ServerRequest request){
Request request = request.bodyToMono(Request.class).block();
Where is the problem ? but if i send a direct request to server all is ok.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…