You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spring-boot/spring-boot-project/spring-boot-test/src/main
Andy Wilkinson 297e3079d0 Fix handling of UriTemplateRequestEntity in TestRestTemplate
A change [1] in Spring Framework 5.3 means that getUrl() on a
RequestEntity will throw an UnsupportedOperationException if the
entity was created using a template.

This commit updates TestRestTemplate to check for instances of
UriTemplateRequestEntity and to resolve the URI using the
entity's UriTemplateHandler instead of calling getUrl() directly.

Fixes gh-25097

[1] a0f4d81db7
4 years ago
..
java/org/springframework/boot/test Fix handling of UriTemplateRequestEntity in TestRestTemplate 4 years ago
kotlin/org/springframework/boot/test/web/client Merge branch '1.5.x' into 2.0.x 6 years ago
resources Provide Mockito with a MockResolver that removes Spring-created proxies 4 years ago