Skip to content

Commit 6240556

Browse files
committed
Polishing
1 parent a8de8ac commit 6240556

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

spring-test/src/main/java/org/springframework/test/http/HttpHeadersAssert.java

+6-4
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public class HttpHeadersAssert extends AbstractObjectAssert<HttpHeadersAssert, H
4444

4545
private static final ZoneId GMT = ZoneId.of("GMT");
4646

47+
4748
private final AbstractCollectionAssert<?, Collection<? extends String>, String, ObjectAssert<String>> namesAssert;
4849

4950

@@ -54,6 +55,7 @@ public HttpHeadersAssert(HttpHeaders actual) {
5455
.as("HTTP header names");
5556
}
5657

58+
5759
/**
5860
* Verify that the actual HTTP headers contain a header with the given
5961
* {@code name}.
@@ -180,7 +182,7 @@ public HttpHeadersAssert hasValue(String name, Instant value) {
180182
* {@code name} and {@link String} primary {@code value}.
181183
* <p>This assertion fails if the header has secondary values.
182184
* @param name the name of the header
183-
* @param value the expected only value of the header
185+
* @param value the expected value of the header
184186
* @since 7.0
185187
*/
186188
public HttpHeadersAssert hasSingleValue(String name, String value) {
@@ -214,7 +216,6 @@ public HttpHeadersAssert hasSingleValue(String name, Instant value) {
214216
return hasValue(name, value);
215217
}
216218

217-
218219
/**
219220
* Verify that the given header has a full list of values exactly equal to
220221
* the given list of values, and in the same order.
@@ -246,7 +247,7 @@ public HttpHeadersAssert hasExactlyValuesInAnyOrder(String name, List<String> va
246247
}
247248

248249
/**
249-
* Verify that headers are empty and no headers are present.
250+
* Verify that the actual HTTP headers are empty and no header is present.
250251
*/
251252
public HttpHeadersAssert isEmpty() {
252253
this.namesAssert
@@ -256,7 +257,8 @@ public HttpHeadersAssert isEmpty() {
256257
}
257258

258259
/**
259-
* Verify that headers are not empty and at least one header is present.
260+
* Verify that the actual HTTP headers are not empty and at least one header
261+
* is present.
260262
*/
261263
public HttpHeadersAssert isNotEmpty() {
262264
this.namesAssert

0 commit comments

Comments
 (0)