From bebfa76f55717e36e0a0554e193de5c291f7afde Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Mon, 15 Oct 2018 16:52:05 -0700 Subject: [PATCH] Fix tests See gh-12838 --- .../java/sample/actuator/SampleActuatorApplicationTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/SampleActuatorApplicationTests.java b/spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/SampleActuatorApplicationTests.java index 8d5bf86e0f..689c78f2c9 100644 --- a/spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/SampleActuatorApplicationTests.java +++ b/spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/SampleActuatorApplicationTests.java @@ -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