spring-boot/spring-boot-project/spring-boot-test
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
2021-02-04 10:59:00 +00:00
..
src Fix handling of UriTemplateRequestEntity in TestRestTemplate 2021-02-04 10:59:00 +00:00
build.gradle Merge branch '2.3.x' into 2.4.x 2021-02-02 15:12:27 +00:00