Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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] spring-projects/spring-framework@a0f4d81
- Loading branch information
1 parent
788a42d
commit 297e307
Showing
2 changed files
with
51 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters