Skip to content

Commit 8cd07db

Browse files
committed
Polish
See gh-21286
1 parent e4618cf commit 8cd07db

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/error/DefaultErrorWebExceptionHandlerIntegrationTests.java

-14
Original file line numberDiff line numberDiff line change
@@ -141,20 +141,6 @@ void bindingResultErrorIncludeMessageAndErrors() {
141141
});
142142
}
143143

144-
@Test
145-
void includeStackTraceOnTraceParam() {
146-
this.contextRunner.withPropertyValues("server.error.include-exception=true",
147-
"server.error.include-stacktrace=on-trace-param").run((context) -> {
148-
WebTestClient client = getWebClient(context);
149-
client.get().uri("/?trace=true").exchange().expectStatus()
150-
.isEqualTo(HttpStatus.INTERNAL_SERVER_ERROR).expectBody().jsonPath("status")
151-
.isEqualTo("500").jsonPath("error")
152-
.isEqualTo(HttpStatus.INTERNAL_SERVER_ERROR.getReasonPhrase()).jsonPath("exception")
153-
.isEqualTo(IllegalStateException.class.getName()).jsonPath("trace").exists()
154-
.jsonPath("requestId").isEqualTo(this.logIdFilter.getLogId());
155-
});
156-
}
157-
158144
@Test
159145
void includeStackTraceOnParam() {
160146
this.contextRunner

0 commit comments

Comments
 (0)