Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
snicoll committed Dec 24, 2020
1 parent e4618cf commit 8cd07db
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8cd07db

Please sign in to comment.