Skip to content

Commit f5ae58e

Browse files
committed
Fix deprecation warning
See gh-23256
1 parent 507fae5 commit f5ae58e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/error/ErrorMvcAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void renderCanUseJavaTimeTypeAsTimestamp() throws Exception { // gh-23256
7575
ErrorAttributes errorAttributes = context.getBean(ErrorAttributes.class);
7676
DispatcherServletWebRequest webRequest = createWebRequest(new IllegalStateException("Exception message"),
7777
false);
78-
Map<String, Object> attributes = errorAttributes.getErrorAttributes(webRequest, true);
78+
Map<String, Object> attributes = errorAttributes.getErrorAttributes(webRequest, withAllOptions());
7979
attributes.put("timestamp", Clock.systemUTC().instant());
8080
errorView.render(attributes, webRequest.getRequest(), webRequest.getResponse());
8181
assertThat(webRequest.getResponse().getContentType()).isEqualTo("text/html;charset=UTF-8");

0 commit comments

Comments
 (0)