From cff3e4c831b087048f28c5c163a9d3f2ccafbdf9 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Mon, 11 Jan 2021 13:39:21 -0800 Subject: [PATCH] Fix tests following upstream framework changes --- .../autoconfigure/web/servlet/WebMvcAutoConfigurationTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfigurationTests.java index 23551042fe..04d3bb72e0 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfigurationTests.java @@ -1041,7 +1041,7 @@ class WebMvcAutoConfigurationTests { protected Map> getMappingLocations(HandlerMapping mapping) { Map> mappingLocations = new LinkedHashMap<>(); getHandlerMap(mapping).forEach((key, value) -> { - Object locations = ReflectionTestUtils.getField(value, "locations"); + Object locations = ReflectionTestUtils.getField(value, "locationsToUse"); mappingLocations.put(key, (List) locations); }); return mappingLocations;