Skip to content

Commit 7f87e88

Browse files
committed
Spring WebClient retrieve() vs exchange()
1 parent 2f1cd9a commit 7f87e88

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

spring-reactive-modules/spring-reactive-client-2/src/test/java/com/baeldung/webclientretrievevsexchange/RetrieveAndExchangeIntegrationTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class RetrieveAndExchangeIntegrationTest {
1212
private WebTestClient webTestClient;
1313

1414
@Test
15-
void givenFirstUser_whenRetrieveMethodIsUsed_returnOk() throws Exception {
15+
void givenFirstUser_whenRetrieveMethodIsUsed_thenReturnOk() throws Exception {
1616
this.webTestClient.get()
1717
.uri("/user/1")
1818
.exchange()
@@ -21,7 +21,7 @@ void givenFirstUser_whenRetrieveMethodIsUsed_returnOk() throws Exception {
2121
}
2222

2323
@Test
24-
void givenFirstUser_whenRetreiveMethodIsUsedWithOnStatusHandler_returnNotFound() throws Exception {
24+
void givenFirstUser_whenRetreiveMethodIsUsedWithOnStatusHandler_thenReturnNotFound() throws Exception {
2525
this.webTestClient.get()
2626
.uri("/user-status/100")
2727
.exchange()
@@ -30,7 +30,7 @@ void givenFirstUser_whenRetreiveMethodIsUsedWithOnStatusHandler_returnNotFound()
3030
}
3131

3232
@Test
33-
void givenFirstUser_whenExchangeMonoMethodIsUsed_returnOk() throws Exception {
33+
void givenFirstUser_whenExchangeMonoMethodIsUsed_thenReturnOk() throws Exception {
3434
this.webTestClient.get()
3535
.uri("/user/exchange-mono/1")
3636
.exchange()
@@ -39,7 +39,7 @@ void givenFirstUser_whenExchangeMonoMethodIsUsed_returnOk() throws Exception {
3939
}
4040

4141
@Test
42-
void givenAllUsers_whenRetrieveMethodIsUsed_returnOk() throws Exception {
42+
void givenAllUsers_whenRetrieveMethodIsUsed_thenReturnOk() throws Exception {
4343
this.webTestClient.get()
4444
.uri("/users")
4545
.exchange()
@@ -48,7 +48,7 @@ void givenAllUsers_whenRetrieveMethodIsUsed_returnOk() throws Exception {
4848
}
4949

5050
@Test
51-
void givenSingleUser_whenResponseBodyIsAltered_returnOk() throws Exception {
51+
void givenSingleUser_whenResponseBodyIsAltered_thenReturnOk() throws Exception {
5252
this.webTestClient.get()
5353
.uri("/user/exchange-alter/1")
5454
.exchange()
@@ -57,7 +57,7 @@ void givenSingleUser_whenResponseBodyIsAltered_returnOk() throws Exception {
5757
}
5858

5959
@Test
60-
void givenAllUsers_whenExchangeFluxMethodIsUsed_returnOk() throws Exception {
60+
void givenAllUsers_whenExchangeFluxMethodIsUsed_thenReturnOk() throws Exception {
6161
this.webTestClient.get()
6262
.uri("/user-exchange-flux")
6363
.exchange()

0 commit comments

Comments
 (0)