diff --git a/spring-boot-samples/spring-boot-sample-webflux/src/test/java/sample/webflux/SampleWebFluxApplicationTests.java b/spring-boot-samples/spring-boot-sample-webflux/src/test/java/sample/webflux/SampleWebFluxApplicationTests.java index bc35ef4ee46..19478faacc9 100644 --- a/spring-boot-samples/spring-boot-sample-webflux/src/test/java/sample/webflux/SampleWebFluxApplicationTests.java +++ b/spring-boot-samples/spring-boot-sample-webflux/src/test/java/sample/webflux/SampleWebFluxApplicationTests.java @@ -41,7 +41,7 @@ public class SampleWebFluxApplicationTests { @Test public void testWelcome() throws Exception { this.webClient.get().uri("/").accept(MediaType.TEXT_PLAIN).exchange() - .expectBody(String.class).value().isEqualTo("Hello World"); + .expectBody(String.class).isEqualTo("Hello World"); } } diff --git a/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/reactive/webclient/WebFluxTestAllControllersIntegrationTests.java b/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/reactive/webclient/WebFluxTestAllControllersIntegrationTests.java index 176dcbdabb5..eb9087385f0 100644 --- a/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/reactive/webclient/WebFluxTestAllControllersIntegrationTests.java +++ b/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/reactive/webclient/WebFluxTestAllControllersIntegrationTests.java @@ -39,13 +39,13 @@ public class WebFluxTestAllControllersIntegrationTests { @Test public void shouldFindController1() { this.webClient.get().uri("/one").exchange().expectStatus().isOk() - .expectBody(String.class).value().isEqualTo("one"); + .expectBody(String.class).isEqualTo("one"); } @Test public void shouldFindController2() { this.webClient.get().uri("/two").exchange().expectStatus().isOk() - .expectBody(String.class).value().isEqualTo("two"); + .expectBody(String.class).isEqualTo("two"); } } diff --git a/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/reactive/webclient/WebFluxTestOneControllerIntegrationTests.java b/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/reactive/webclient/WebFluxTestOneControllerIntegrationTests.java index d4b3efa5105..49bacba5916 100644 --- a/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/reactive/webclient/WebFluxTestOneControllerIntegrationTests.java +++ b/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/reactive/webclient/WebFluxTestOneControllerIntegrationTests.java @@ -39,7 +39,7 @@ public class WebFluxTestOneControllerIntegrationTests { @Test public void shouldFindController() { this.webClient.get().uri("/one").exchange().expectStatus().isOk() - .expectBody(String.class).value().isEqualTo("one"); + .expectBody(String.class).isEqualTo("one"); } @Test diff --git a/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/reactive/webclient/WebTestClientSpringBootTestIntegrationTests.java b/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/reactive/webclient/WebTestClientSpringBootTestIntegrationTests.java index f97ae867b4f..f8c7261f04f 100644 --- a/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/reactive/webclient/WebTestClientSpringBootTestIntegrationTests.java +++ b/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/reactive/webclient/WebTestClientSpringBootTestIntegrationTests.java @@ -48,13 +48,13 @@ public class WebTestClientSpringBootTestIntegrationTests { @Test public void shouldFindController1() { this.webClient.get().uri("/one").exchange().expectStatus().isOk() - .expectBody(String.class).value().isEqualTo("one"); + .expectBody(String.class).isEqualTo("one"); } @Test public void shouldFindController2() { this.webClient.get().uri("/two").exchange().expectStatus().isOk() - .expectBody(String.class).value().isEqualTo("two"); + .expectBody(String.class).isEqualTo("two"); } @Test diff --git a/spring-boot-test/src/test/java/org/springframework/boot/test/context/AbstractSpringBootTestEmbeddedReactiveWebEnvironmentTests.java b/spring-boot-test/src/test/java/org/springframework/boot/test/context/AbstractSpringBootTestEmbeddedReactiveWebEnvironmentTests.java index 5b144bbe7d4..399db3206ea 100644 --- a/spring-boot-test/src/test/java/org/springframework/boot/test/context/AbstractSpringBootTestEmbeddedReactiveWebEnvironmentTests.java +++ b/spring-boot-test/src/test/java/org/springframework/boot/test/context/AbstractSpringBootTestEmbeddedReactiveWebEnvironmentTests.java @@ -67,13 +67,13 @@ public abstract class AbstractSpringBootTestEmbeddedReactiveWebEnvironmentTests public void runAndTestHttpEndpoint() { assertThat(this.port).isNotEqualTo(8080).isNotEqualTo(0); WebTestClient.bindToServer().baseUrl("http://localhost:" + this.port).build() - .get().uri("/").exchange().expectBody(String.class).value() + .get().uri("/").exchange().expectBody(String.class) .isEqualTo("Hello World"); } @Test public void injectWebTestClient() { - this.webClient.get().uri("/").exchange().expectBody(String.class).value() + this.webClient.get().uri("/").exchange().expectBody(String.class) .isEqualTo("Hello World"); }