Skip to content

Commit cf19c17

Browse files
committed
Adapt test to change in Spring Framework snapshots
1 parent 2a405c9 commit cf19c17

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/WebMvcAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ void defaultLocaleResolver() {
293293
this.contextRunner.run((context) -> {
294294
assertThat(context).hasSingleBean(LocaleResolver.class);
295295
LocaleResolver localeResolver = context.getBean(LocaleResolver.class);
296-
assertThat(((AcceptHeaderLocaleResolver) localeResolver).getDefaultLocale()).isNull();
296+
assertThat(localeResolver).hasFieldOrPropertyWithValue("defaultLocale", null);
297297
});
298298
}
299299

0 commit comments

Comments
 (0)