Use a two-space indent when continuing a line
This commit is contained in:
parent
b25323afb2
commit
44485bcc48
@ -84,8 +84,7 @@ public class WebFilterFactoriesLiveTest {
|
|||||||
|
|
||||||
HttpEntity<String> entity = new HttpEntity<>("content", new HttpHeaders());
|
HttpEntity<String> entity = new HttpEntity<>("content", new HttpHeaders());
|
||||||
|
|
||||||
ResponseEntity<String> response = restTemplate.exchange(url,
|
ResponseEntity<String> response = restTemplate.exchange(url, HttpMethod.POST, entity, String.class);
|
||||||
HttpMethod.POST, entity, String.class);
|
|
||||||
assertThat(response.getStatusCode()).isEqualTo(HttpStatus.OK);
|
assertThat(response.getStatusCode()).isEqualTo(HttpStatus.OK);
|
||||||
|
|
||||||
JSONObject json = new JSONObject(response.getBody());
|
JSONObject json = new JSONObject(response.getBody());
|
||||||
@ -93,15 +92,13 @@ public class WebFilterFactoriesLiveTest {
|
|||||||
assertThat(data.getString("message")).isEqualTo("CONTENT");
|
assertThat(data.getString("message")).isEqualTo("CONTENT");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whenCallPutThroughGateway_thenBodyIsRetrieved() throws JSONException {
|
public void whenCallPutThroughGateway_thenBodyIsRetrieved() throws JSONException {
|
||||||
String url = "http://localhost:" + port + "/put";
|
String url = "http://localhost:" + port + "/put";
|
||||||
|
|
||||||
HttpEntity<String> entity = new HttpEntity<>("CONTENT", new HttpHeaders());
|
HttpEntity<String> entity = new HttpEntity<>("CONTENT", new HttpHeaders());
|
||||||
|
|
||||||
ResponseEntity<String> response = restTemplate.exchange(url,
|
ResponseEntity<String> response = restTemplate.exchange(url, HttpMethod.PUT, entity, String.class);
|
||||||
HttpMethod.PUT, entity, String.class);
|
|
||||||
assertThat(response.getStatusCode()).isEqualTo(HttpStatus.OK);
|
assertThat(response.getStatusCode()).isEqualTo(HttpStatus.OK);
|
||||||
|
|
||||||
JSONObject json = new JSONObject(response.getBody());
|
JSONObject json = new JSONObject(response.getBody());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user