@Test public void shouldGetBody() { DataBufferFactory factory = new DefaultDataBufferFactory(); Flux<DataBuffer> body = Flux.just(factory.wrap("first".getBytes()), factory.wrap("second".getBytes())); VertxClientHttpResponse response = new VertxClientHttpResponse(mockDelegate, body); assertThat(response.getBody()).isEqualTo(body); }
@Override public Flux<DataBuffer> getBody() { return body; }
VertxClientHttpResponse implements ClientHttpResponse { @Override public Flux<DataBuffer> getBody() { return body; } }
VertxClientHttpResponse implements ClientHttpResponse { @Override public Flux<DataBuffer> getBody() { return body; } VertxClientHttpResponse(HttpClientResponse delegate, Flux<DataBuffer> body); }
VertxClientHttpResponse implements ClientHttpResponse { @Override public Flux<DataBuffer> getBody() { return body; } VertxClientHttpResponse(HttpClientResponse delegate, Flux<DataBuffer> body); @Override int getRawStatusCode(); @Override HttpStatus getStatusCode(); @Override Flux<DataBuffer> getBody(); @Override HttpHeaders getHeaders(); @Override MultiValueMap<String, ResponseCookie> getCookies(); }
VertxClientHttpResponse implements ClientHttpResponse { @Override public Flux<DataBuffer> getBody() { return body; } VertxClientHttpResponse(HttpClientResponse delegate, Flux<DataBuffer> body); @Override int getRawStatusCode(); @Override HttpStatus getStatusCode(); @Override Flux<DataBuffer> getBody(); @Override HttpHeaders getHeaders(); @Override MultiValueMap<String, ResponseCookie> getCookies();  }