diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/DispatcherServletAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/DispatcherServletAutoConfigurationTests.java index 0c920c2b65..2654e5b0a4 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/DispatcherServletAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/DispatcherServletAutoConfigurationTests.java @@ -166,6 +166,7 @@ class DispatcherServletAutoConfigurationTests { assertThat(dispatcherServlet).extracting("throwExceptionIfNoHandlerFound").containsExactly(true); assertThat(dispatcherServlet).extracting("dispatchOptionsRequest").containsExactly(false); assertThat(dispatcherServlet).extracting("dispatchTraceRequest").containsExactly(true); + assertThat(dispatcherServlet).extracting("publishEvents").containsExactly(false); assertThat(context.getBean("dispatcherServletRegistration")) .hasFieldOrPropertyWithValue("loadOnStartup", 5); });