Merge branch '2.0.x'

This commit is contained in:
Stephane Nicoll
2018-07-16 10:37:43 +02:00
5 changed files with 14 additions and 7 deletions

View File

@@ -63,7 +63,8 @@ public class SampleWebJspApplicationTests {
URI.create("/foo"));
ResponseEntity<String> entity = this.restTemplate.exchange(request, String.class);
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.INTERNAL_SERVER_ERROR);
assertThat(entity.getBody()).contains("Something went wrong");
assertThat(entity.getBody())
.contains("Something went wrong: 500 Internal Server Error");
}
}