@Test public void shouldGetStatusCode() { given(mockDelegate.statusCode()).willReturn(200); VertxClientHttpResponse response = new VertxClientHttpResponse(mockDelegate, Flux.empty()); HttpStatus status = response.getStatusCode(); assertThat(status).isEqualTo(HttpStatus.OK); }
@Override public HttpStatus getStatusCode() { return HttpStatus.valueOf(delegate.statusCode()); }
VertxClientHttpResponse implements ClientHttpResponse { @Override public HttpStatus getStatusCode() { return HttpStatus.valueOf(delegate.statusCode()); } }
VertxClientHttpResponse implements ClientHttpResponse { @Override public HttpStatus getStatusCode() { return HttpStatus.valueOf(delegate.statusCode()); } VertxClientHttpResponse(HttpClientResponse delegate, Flux<DataBuffer> body); }
VertxClientHttpResponse implements ClientHttpResponse { @Override public HttpStatus getStatusCode() { return HttpStatus.valueOf(delegate.statusCode()); } 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 HttpStatus getStatusCode() { return HttpStatus.valueOf(delegate.statusCode()); } VertxClientHttpResponse(HttpClientResponse delegate, Flux<DataBuffer> body); @Override int getRawStatusCode(); @Override HttpStatus getStatusCode(); @Override Flux<DataBuffer> getBody(); @Override HttpHeaders getHeaders(); @Override MultiValueMap<String, ResponseCookie> getCookies();  }