Skip to content

Commit abec26e

Browse files
committed
Polish
1 parent f677fba commit abec26e

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

documentation/spring-boot-docs/src/main/java/org/springframework/boot/docs/testing/springbootapplications/withmockenvironment/MyMockMvcTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ void testWithMockMvcTester(@Autowired MockMvcTester mvc) {
6060
}
6161

6262
@Test
63-
void testWithRestTestClient(@Autowired RestTestClient webClient) {
63+
void testWithRestTestClient(@Autowired RestTestClient restClient) {
6464
// @formatter:off
65-
webClient
65+
restClient
6666
.get().uri("/")
6767
.exchange()
6868
.expectStatus().isOk()
@@ -71,9 +71,9 @@ void testWithRestTestClient(@Autowired RestTestClient webClient) {
7171
}
7272

7373
@Test // If you prefer AssertJ, dedicated assertions are available
74-
void testWithRestTestClientAssertJ(@Autowired RestTestClient webClient) {
74+
void testWithRestTestClientAssertJ(@Autowired RestTestClient restClient) {
7575
// @formatter:off
76-
ResponseSpec spec = webClient.get().uri("/").exchange();
76+
ResponseSpec spec = restClient.get().uri("/").exchange();
7777
RestTestClientResponse response = RestTestClientResponse.from(spec);
7878
assertThat(response).hasStatusOk()
7979
.bodyText().isEqualTo("Hello World");

documentation/spring-boot-docs/src/main/java/org/springframework/boot/docs/testing/springbootapplications/withrunningserver/MyRandomPortRestTestClientAssertJTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
class MyRandomPortRestTestClientAssertJTests {
3434

3535
@Test
36-
void exampleTest(@Autowired RestTestClient webClient) {
36+
void exampleTest(@Autowired RestTestClient restClient) {
3737
// @formatter:off
38-
ResponseSpec spec = webClient.get().uri("/").exchange();
38+
ResponseSpec spec = restClient.get().uri("/").exchange();
3939
RestTestClientResponse response = RestTestClientResponse.from(spec);
4040
assertThat(response).hasStatusOk().bodyText().isEqualTo("Hello World");
4141
// @formatter:on

documentation/spring-boot-docs/src/main/java/org/springframework/boot/docs/testing/springbootapplications/withrunningserver/MyRandomPortRestTestClientTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
class MyRandomPortRestTestClientTests {
3030

3131
@Test
32-
void exampleTest(@Autowired RestTestClient webClient) {
32+
void exampleTest(@Autowired RestTestClient restClient) {
3333
// @formatter:off
34-
webClient
34+
restClient
3535
.get().uri("/")
3636
.exchange()
3737
.expectStatus().isOk()

0 commit comments

Comments
 (0)