-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Support HTTP Interface Clients in Test Framework #36674
Copy link
Copy link
Open
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: waiting-for-internal-feedbackAn issue that needs input from a member or another Spring TeamAn issue that needs input from a member or another Spring Teamstatus: waiting-for-triageAn issue we've not yet triaged or decided onAn issue we've not yet triaged or decided on
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: waiting-for-internal-feedbackAn issue that needs input from a member or another Spring TeamAn issue that needs input from a member or another Spring Teamstatus: waiting-for-triageAn issue we've not yet triaged or decided onAn issue we've not yet triaged or decided on
Type
Fields
Give feedbackNo fields configured for issues without a type.
From: https://docs.spring.io/spring-framework/reference/integration/rest-clients.html#rest-http-service-client
[start quote]
On the server side, an
@Controllerclass can implement the same interface to handle requests with @HttpExchange controller methods.[end quote]
At the moment, there are
WebTestClientandRestTestClientfor REST Testing. However, it may be beneficial to use HTTP Interface clients for testing whereWebTestClientandRestTestClientassertions are not needed.At the moment, I see no way to instantiate HTTP Interface Clients and bind them to test Web Server in conjunction with
SpringBootTest.WebEnvironment.RANDOM_PORT.Would you be interested in providing any kind of support for using HTTP Interface Clients within Test Context?
At least consider providing
HttpExchangeAdapterforWebTestClientandRestTestClient.Thanks in advance.