Skip to content

Commit cff3e4c

Browse files
committed
Fix tests following upstream framework changes
1 parent 039df1d commit cff3e4c

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
@@ -1041,7 +1041,7 @@ protected List<ResourceTransformer> getResourceTransformers(ApplicationContext c
10411041
protected Map<String, List<Resource>> getMappingLocations(HandlerMapping mapping) {
10421042
Map<String, List<Resource>> mappingLocations = new LinkedHashMap<>();
10431043
getHandlerMap(mapping).forEach((key, value) -> {
1044-
Object locations = ReflectionTestUtils.getField(value, "locations");
1044+
Object locations = ReflectionTestUtils.getField(value, "locationsToUse");
10451045
mappingLocations.put(key, (List<Resource>) locations);
10461046
});
10471047
return mappingLocations;

0 commit comments

Comments
 (0)