Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for org.springframework.web.client.RestClient #946

Closed
donalmurtagh opened this issue Oct 14, 2024 · 1 comment
Closed

Add support for org.springframework.web.client.RestClient #946

donalmurtagh opened this issue Oct 14, 2024 · 1 comment
Labels
status: declined Suggestion or change that we don't want to make at this time

Comments

@donalmurtagh
Copy link

donalmurtagh commented Oct 14, 2024

The latest HTTP client for testing a Spring application is org.springframework.web.client.RestClient, but according to the docs it is not currently supported by spring-restdocs.

For most use cases, RestClient is a better choice than WebClient/WebTestClient as the latter imposes a reactive API and a dependency on Spring WebFlux.

@wilkinsona
Copy link
Member

Thanks for the suggestion but this would require a test-focussed variant of RestClient (like WebTestClient is to WebClient). That's being tracked by spring-projects/spring-framework#31275. Until that's implemented, there's nothing that can be done here so I'm going to close this issue as it's not actionable at the moment and may never be actionable.

@wilkinsona wilkinsona closed this as not planned Won't fix, can't repro, duplicate, stale Oct 14, 2024
@wilkinsona wilkinsona added status: declined Suggestion or change that we don't want to make at this time and removed status: waiting-for-triage Untriaged issue labels Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: declined Suggestion or change that we don't want to make at this time
Projects
None yet
Development

No branches or pull requests

3 participants