Align test expectations with styling of stack trace div
Closes gh-15075
This commit is contained in:
@@ -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");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user