Align test expectations with styling of stack trace div

Closes gh-15075
This commit is contained in:
Andy Wilkinson
2018-11-08 12:31:21 +00:00
parent bfb0886495
commit e7d921c216
2 changed files with 4 additions and 4 deletions

View File

@@ -195,8 +195,8 @@ public class DefaultErrorWebExceptionHandlerIntegrationTests {
.contentType(MediaType.TEXT_HTML).expectBody(String.class)
.returnResult().getResponseBody();
assertThat(body).contains("Whitelabel Error Page")
.contains("<div>Expected!</div>")
.contains("<div>java.lang.IllegalStateException");
.contains("<div>Expected!</div>").contains(
"<div style='white-space:pre-wrap;'>java.lang.IllegalStateException");
});
}

View File

@@ -60,8 +60,8 @@ public class ErrorMvcAutoConfigurationTests {
.getContentAsString();
assertThat(responseString).contains(
"<p>This application has no explicit mapping for /error, so you are seeing this as a fallback.</p>")
.contains("<div>Exception message</div>")
.contains("<div>java.lang.IllegalStateException");
.contains("<div>Exception message</div>").contains(
"<div style='white-space:pre-wrap;'>java.lang.IllegalStateException");
});
}