From 8cd07dbc60f6146891a686967c9209edb053dd38 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Thu, 24 Dec 2020 11:10:37 +0100 Subject: [PATCH] Polish See gh-21286 --- ...ltErrorWebExceptionHandlerIntegrationTests.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/error/DefaultErrorWebExceptionHandlerIntegrationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/error/DefaultErrorWebExceptionHandlerIntegrationTests.java index 7f086892cfaf..97a8ca73b4b6 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/error/DefaultErrorWebExceptionHandlerIntegrationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/error/DefaultErrorWebExceptionHandlerIntegrationTests.java @@ -141,20 +141,6 @@ void bindingResultErrorIncludeMessageAndErrors() { }); } - @Test - void includeStackTraceOnTraceParam() { - this.contextRunner.withPropertyValues("server.error.include-exception=true", - "server.error.include-stacktrace=on-trace-param").run((context) -> { - WebTestClient client = getWebClient(context); - client.get().uri("/?trace=true").exchange().expectStatus() - .isEqualTo(HttpStatus.INTERNAL_SERVER_ERROR).expectBody().jsonPath("status") - .isEqualTo("500").jsonPath("error") - .isEqualTo(HttpStatus.INTERNAL_SERVER_ERROR.getReasonPhrase()).jsonPath("exception") - .isEqualTo(IllegalStateException.class.getName()).jsonPath("trace").exists() - .jsonPath("requestId").isEqualTo(this.logIdFilter.getLogId()); - }); - } - @Test void includeStackTraceOnParam() { this.contextRunner