Formatting
This commit is contained in:
@@ -102,8 +102,10 @@ public class ProxyResponseAutoConfiguration implements WebMvcConfigurer {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void handleError(ClientHttpResponse response, HttpStatusCode statusCode, URI url, HttpMethod method) throws IOException {
|
||||
protected void handleError(ClientHttpResponse response, HttpStatusCode statusCode, URI url, HttpMethod method)
|
||||
throws IOException {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -153,7 +153,8 @@ public class ProductionConfigurationTests {
|
||||
@Test
|
||||
public void postForwardBody() {
|
||||
ResponseEntity<String> result = rest
|
||||
.exchange(RequestEntity.post(rest.getRestTemplate().getUriTemplateHandler().expand("/forward/body/bars")).accept(MediaType.APPLICATION_JSON)
|
||||
.exchange(RequestEntity.post(rest.getRestTemplate().getUriTemplateHandler().expand("/forward/body/bars"))
|
||||
.accept(MediaType.APPLICATION_JSON)
|
||||
.body(Collections.singletonList(Collections.singletonMap("name", "foo"))), String.class);
|
||||
assertThat(result.getStatusCode()).isEqualTo(HttpStatus.OK);
|
||||
assertThat(result.getBody()).contains("foo");
|
||||
@@ -162,7 +163,8 @@ public class ProductionConfigurationTests {
|
||||
@Test
|
||||
public void postForwardForgetBody() {
|
||||
ResponseEntity<String> result = rest
|
||||
.exchange(RequestEntity.post(rest.getRestTemplate().getUriTemplateHandler().expand("/forward/forget/bars")).accept(MediaType.APPLICATION_JSON)
|
||||
.exchange(RequestEntity.post(rest.getRestTemplate().getUriTemplateHandler().expand("/forward/forget/bars"))
|
||||
.accept(MediaType.APPLICATION_JSON)
|
||||
.body(Collections.singletonList(Collections.singletonMap("name", "foo"))), String.class);
|
||||
assertThat(result.getStatusCode()).isEqualTo(HttpStatus.OK);
|
||||
assertThat(result.getBody()).contains("foo");
|
||||
|
||||
Reference in New Issue
Block a user