-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Open
Labels
in: testIssues in the test moduleIssues in the test modulein: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)
Milestone
Description
When using RestClient
it's possible to submit a request that's expected to succeed via
restClient.post()
.uri("/foo/bar")
.body(requestData)
.retrieve();
With a RestTestClient
the equivalent is
restTestClient.post()
.uri("/foo/bar")
.body(requestData)
.exchange()
.expectStatus().is2xxSuccessful();
Could we add a correspondingretrieve()
method to the RestTestClient
API? Not only would it make the code a bit more concise for the very common case of submitting a request that's expected to succeed, but it would simplify migrating from RestClient
to RestTestClient
Metadata
Metadata
Assignees
Labels
in: testIssues in the test moduleIssues in the test modulein: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)