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 987635fbeb..0b8cccaa04 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 @@ -83,7 +83,7 @@ class DispatcherServletAutoConfigurationTests { @Test void registrationOverrideWithAutowiredServlet() { - this.contextRunner.withUserConfiguration(CustomAutowiredRegistration.class, CustomDispatcherServletPath.class) + this.contextRunner.withUserConfiguration(CustomAutowiredRegistration.class) .run((context) -> { ServletRegistrationBean registration = context.getBean(ServletRegistrationBean.class); assertThat(registration.getUrlMappings()).containsExactly("/foo");