TestRestTemplate is part of Spring Boot and this tracker doesn't manage Spring Boot issues as it has a dedicated issue tracker.
That said, there is already support for this in the very question you've linked. If you configure a RestTemplateBuilder, it will be used to build the TestRestTemplate. If you have more questions, please ask on StackOverflow.
I presume you are aware of this since there are many answers in the SO thread. So you need to explain better what you mean by not simple. The above is reasonably simple.
Igor Manushin opened SPR-17112 and commented
This jira is for TestRestTemplate class.
It is unable to simple set readTimeout/connectTimeout of it, so it is not simple to verify long-running rest services.
Possible solutions:
Matched question on the stackoverflow (for rest template): https://stackoverflow.com/questions/13837012/spring-resttemplate-timeout
Affects: 5.0.8
The text was updated successfully, but these errors were encountered: