Upgrade to spring-javaformat 0.0.11
This commit is contained in:
@@ -52,8 +52,7 @@ public class SampleWebFreeMarkerApplicationTests {
|
||||
|
||||
@Test
|
||||
public void testFreeMarkerTemplate() throws Exception {
|
||||
ResponseEntity<String> entity = this.testRestTemplate.getForEntity("/",
|
||||
String.class);
|
||||
ResponseEntity<String> entity = this.testRestTemplate.getForEntity("/", String.class);
|
||||
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
|
||||
assertThat(entity.getBody()).contains("Hello, Andy");
|
||||
}
|
||||
@@ -64,12 +63,11 @@ public class SampleWebFreeMarkerApplicationTests {
|
||||
headers.setAccept(Arrays.asList(MediaType.TEXT_HTML));
|
||||
HttpEntity<String> requestEntity = new HttpEntity<String>(headers);
|
||||
|
||||
ResponseEntity<String> responseEntity = this.testRestTemplate
|
||||
.exchange("/does-not-exist", HttpMethod.GET, requestEntity, String.class);
|
||||
ResponseEntity<String> responseEntity = this.testRestTemplate.exchange("/does-not-exist", HttpMethod.GET,
|
||||
requestEntity, String.class);
|
||||
|
||||
assertThat(responseEntity.getStatusCode()).isEqualTo(HttpStatus.NOT_FOUND);
|
||||
assertThat(responseEntity.getBody())
|
||||
.contains("Something went wrong: 404 Not Found");
|
||||
assertThat(responseEntity.getBody()).contains("Something went wrong: 404 Not Found");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user