Fix tests

See gh-12838
This commit is contained in:
Madhura Bhave 2018-10-15 16:52:05 -07:00
parent a5dc004e0b
commit bebfa76f55
1 changed files with 2 additions and 1 deletions

View File

@ -161,7 +161,8 @@ public class SampleActuatorApplicationTests {
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.INTERNAL_SERVER_ERROR);
String body = entity.getBody();
assertThat(body).as("Body was null").isNotNull();
assertThat(body).contains("This application has no explicit mapping for /error");
assertThat(body).contains(
"This application has no configured error view, so you are seeing this as a fallback.");
}
@Test