Skip to content

Commit 46329d0

Browse files
committed
Polish Javadoc for HeaderAssertions and StatusAssertions
See gh-23878
1 parent d159ec8 commit 46329d0

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

spring-test/src/main/java/org/springframework/test/web/reactive/server/HeaderAssertions.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public WebTestClient.ResponseSpec valueEquals(String headerName, String... value
5959
}
6060

6161
/**
62-
* Match the primary value of the response header with a regex.
62+
* Match the first value of the response header with a regex.
6363
* @param name the header name
6464
* @param pattern the regex pattern
6565
*/
@@ -71,9 +71,9 @@ public WebTestClient.ResponseSpec valueMatches(String name, String pattern) {
7171
}
7272

7373
/**
74-
* Assert the primary value of the response header with a {@link Matcher}.
74+
* Assert the first value of the response header with a Hamcrest {@link Matcher}.
7575
* @param name the header name
76-
* @param matcher the matcher to sue
76+
* @param matcher the matcher to use
7777
* @since 5.1
7878
*/
7979
public WebTestClient.ResponseSpec value(String name, Matcher<? super String> matcher) {
@@ -83,9 +83,9 @@ public WebTestClient.ResponseSpec value(String name, Matcher<? super String> mat
8383
}
8484

8585
/**
86-
* Assert the primary value of the response header with a {@link Matcher}.
86+
* Consume the first value of the response header.
8787
* @param name the header name
88-
* @param consumer the matcher to sue
88+
* @param consumer the consumer to use
8989
* @since 5.1
9090
*/
9191
public WebTestClient.ResponseSpec value(String name, Consumer<String> consumer) {

spring-test/src/main/java/org/springframework/test/web/reactive/server/StatusAssertions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ public WebTestClient.ResponseSpec value(Matcher<Integer> matcher) {
211211
}
212212

213213
/**
214-
* Match the response status value with a Hamcrest matcher.
215-
* @param consumer the matcher to use
214+
* Consume the response status value as an integer.
215+
* @param consumer the consumer to use
216216
* @since 5.1
217217
*/
218218
public WebTestClient.ResponseSpec value(Consumer<Integer> consumer) {

0 commit comments

Comments
 (0)