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

Create a RestClient alternative to WebTestClient and TestRestTemplate #39848

Closed
plebcity opened this issue Mar 7, 2024 · 1 comment
Closed
Labels
status: duplicate A duplicate of another issue

Comments

@plebcity
Copy link

plebcity commented Mar 7, 2024

Since Spring Boot 3.2 we are using RestClient in our production code and we love it but for our Controller/Integration tests there isn't an easy way to create and/or inject a RestClient with all configuration necessary to make requests to the controllers.

I would love to have a preconfigured bean like WebTestClient and TestRestTemplate that we can inject into our tests.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 7, 2024
@wilkinsona
Copy link
Member

Thanks for the suggestion. This is a duplicate of spring-projects/spring-framework#31275.

@wilkinsona wilkinsona closed this as not planned Won't fix, can't repro, duplicate, stale Mar 7, 2024
@wilkinsona wilkinsona added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants