diff --git a/spring-webmvc/src/test/java/org/springframework/web/servlet/config/annotation/DelegatingWebMvcConfigurationTests.java b/spring-webmvc/src/test/java/org/springframework/web/servlet/config/annotation/DelegatingWebMvcConfigurationTests.java index a12fb97cd0..5a5daeaadf 100644 --- a/spring-webmvc/src/test/java/org/springframework/web/servlet/config/annotation/DelegatingWebMvcConfigurationTests.java +++ b/spring-webmvc/src/test/java/org/springframework/web/servlet/config/annotation/DelegatingWebMvcConfigurationTests.java @@ -340,7 +340,7 @@ public class DelegatingWebMvcConfigurationTests { assertThat(beanNameMapping).isNotNull(); assertThat(beanNameMapping.getPatternParser()).isSameAs(patternParser); - configAssertion.accept(beanNameMapping.getUrlPathHelper(), mapping.getPathMatcher()); + configAssertion.accept(beanNameMapping.getUrlPathHelper(), beanNameMapping.getPathMatcher()); assertThat(webMvcConfig.mvcResourceUrlProvider().getUrlPathHelper()).isSameAs(pathHelper); assertThat(webMvcConfig.mvcResourceUrlProvider().getPathMatcher()).isSameAs(pathMatcher);