From 46329d0b973eaf4698a5fb916996f3ad6274201f Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Mon, 28 Oct 2019 13:33:30 +0100 Subject: [PATCH] Polish Javadoc for HeaderAssertions and StatusAssertions See gh-23878 --- .../test/web/reactive/server/HeaderAssertions.java | 10 +++++----- .../test/web/reactive/server/StatusAssertions.java | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/spring-test/src/main/java/org/springframework/test/web/reactive/server/HeaderAssertions.java b/spring-test/src/main/java/org/springframework/test/web/reactive/server/HeaderAssertions.java index b7b68a2340..4527fbdf08 100644 --- a/spring-test/src/main/java/org/springframework/test/web/reactive/server/HeaderAssertions.java +++ b/spring-test/src/main/java/org/springframework/test/web/reactive/server/HeaderAssertions.java @@ -59,7 +59,7 @@ public class HeaderAssertions { } /** - * Match the primary value of the response header with a regex. + * Match the first value of the response header with a regex. * @param name the header name * @param pattern the regex pattern */ @@ -71,9 +71,9 @@ public class HeaderAssertions { } /** - * Assert the primary value of the response header with a {@link Matcher}. + * Assert the first value of the response header with a Hamcrest {@link Matcher}. * @param name the header name - * @param matcher the matcher to sue + * @param matcher the matcher to use * @since 5.1 */ public WebTestClient.ResponseSpec value(String name, Matcher matcher) { @@ -83,9 +83,9 @@ public class HeaderAssertions { } /** - * Assert the primary value of the response header with a {@link Matcher}. + * Consume the first value of the response header. * @param name the header name - * @param consumer the matcher to sue + * @param consumer the consumer to use * @since 5.1 */ public WebTestClient.ResponseSpec value(String name, Consumer consumer) { diff --git a/spring-test/src/main/java/org/springframework/test/web/reactive/server/StatusAssertions.java b/spring-test/src/main/java/org/springframework/test/web/reactive/server/StatusAssertions.java index cce9cb8f9a..62d0a246f4 100644 --- a/spring-test/src/main/java/org/springframework/test/web/reactive/server/StatusAssertions.java +++ b/spring-test/src/main/java/org/springframework/test/web/reactive/server/StatusAssertions.java @@ -211,8 +211,8 @@ public class StatusAssertions { } /** - * Match the response status value with a Hamcrest matcher. - * @param consumer the matcher to use + * Consume the response status value as an integer. + * @param consumer the consumer to use * @since 5.1 */ public WebTestClient.ResponseSpec value(Consumer consumer) {