Use a two-space indent when continuing a line

This commit is contained in:
Cavero Barca 2020-04-25 01:49:20 +02:00
parent b25323afb2
commit 44485bcc48
3 changed files with 43 additions and 46 deletions

View File

@ -84,8 +84,7 @@ public class WebFilterFactoriesLiveTest {
HttpEntity<String> entity = new HttpEntity<>("content", new HttpHeaders());
ResponseEntity<String> response = restTemplate.exchange(url,
HttpMethod.POST, entity, String.class);
ResponseEntity<String> response = restTemplate.exchange(url, HttpMethod.POST, entity, String.class);
assertThat(response.getStatusCode()).isEqualTo(HttpStatus.OK);
JSONObject json = new JSONObject(response.getBody());
@ -93,15 +92,13 @@ public class WebFilterFactoriesLiveTest {
assertThat(data.getString("message")).isEqualTo("CONTENT");
}
@Test
public void whenCallPutThroughGateway_thenBodyIsRetrieved() throws JSONException {
String url = "http://localhost:" + port + "/put";
HttpEntity<String> entity = new HttpEntity<>("CONTENT", new HttpHeaders());
ResponseEntity<String> response = restTemplate.exchange(url,
HttpMethod.PUT, entity, String.class);
ResponseEntity<String> response = restTemplate.exchange(url, HttpMethod.PUT, entity, String.class);
assertThat(response.getStatusCode()).isEqualTo(HttpStatus.OK);
JSONObject json = new JSONObject(response.getBody());