Polishing contribution

Closes gh-36514
This commit is contained in:
rstoyanchev
2026-03-24 15:24:33 +01:00
parent 00be6d3afd
commit 2dcd56bbaf
2 changed files with 5 additions and 6 deletions
@@ -200,7 +200,7 @@ class RestClientAdapterTests {
assertThat(actualResponse).isEqualTo("Hello Spring 2!");
}
@Test
@Test // gh-36514
void greetingWithDefaultApiVersion() throws Exception {
prepareResponse(builder ->
builder.setHeader("Content-Type", "text/plain").body("Hello Spring 2!"));
@@ -211,10 +211,9 @@ class RestClientAdapterTests {
.apiVersionInserter(ApiVersionInserter.useHeader("X-Version"))
.build();
RestClientAdapter adapter = RestClientAdapter.create(restClient);
Service service = HttpServiceProxyFactory.builderFor(adapter).build().createClient(Service.class);
String actualResponse = service.getGreeting();
String actualResponse =
HttpServiceProxyFactory.builderFor(RestClientAdapter.create(restClient)).build()
.createClient(Service.class).getGreeting();
RecordedRequest request = anotherServer.takeRequest();
assertThat(request.getHeaders().get("X-Version")).isEqualTo("1.0");
@@ -130,7 +130,7 @@ class WebClientAdapterTests {
assertThat(attributes).containsEntry("myAttribute", "myAttributeValue");
}
@Test
@Test // gh-36514
void greetingWithDefaultApiVersion() throws InterruptedException {
prepareResponse(builder -> builder.setHeader("Content-Type", "text/plain").body("Hello Spring 2!"));