modified url override example, to use the client3 (the one defining the baseUrl)

This commit is contained in:
Gerardo Roza 2021-01-26 18:17:17 -03:00
parent 0f668a63b9
commit c477f22f27
1 changed files with 2 additions and 1 deletions

View File

@ -75,7 +75,8 @@ public class WebClientIntegrationTest {
RequestBodySpec bodySpecPostMultipart = uriSpecPost2.uri(uriBuilder -> uriBuilder.pathSegment("resource-multipart")
.build());
RequestBodySpec fooBodySpecPost = createDefaultPostRequest().uri("/resource-foo");
RequestBodySpec bodySpecOverridenBaseUri = createDefaultPostRequest().uri(URI.create("/resource"));
RequestBodySpec bodySpecOverridenBaseUri = client3.post()
.uri(URI.create("/resource"));
// request body specifications
String bodyValue = "bodyValue";