@@ -44,6 +44,7 @@ public class HttpHeadersAssert extends AbstractObjectAssert<HttpHeadersAssert, H
44
44
45
45
private static final ZoneId GMT = ZoneId .of ("GMT" );
46
46
47
+
47
48
private final AbstractCollectionAssert <?, Collection <? extends String >, String , ObjectAssert <String >> namesAssert ;
48
49
49
50
@@ -54,6 +55,7 @@ public HttpHeadersAssert(HttpHeaders actual) {
54
55
.as ("HTTP header names" );
55
56
}
56
57
58
+
57
59
/**
58
60
* Verify that the actual HTTP headers contain a header with the given
59
61
* {@code name}.
@@ -180,7 +182,7 @@ public HttpHeadersAssert hasValue(String name, Instant value) {
180
182
* {@code name} and {@link String} primary {@code value}.
181
183
* <p>This assertion fails if the header has secondary values.
182
184
* @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
184
186
* @since 7.0
185
187
*/
186
188
public HttpHeadersAssert hasSingleValue (String name , String value ) {
@@ -214,7 +216,6 @@ public HttpHeadersAssert hasSingleValue(String name, Instant value) {
214
216
return hasValue (name , value );
215
217
}
216
218
217
-
218
219
/**
219
220
* Verify that the given header has a full list of values exactly equal to
220
221
* the given list of values, and in the same order.
@@ -246,7 +247,7 @@ public HttpHeadersAssert hasExactlyValuesInAnyOrder(String name, List<String> va
246
247
}
247
248
248
249
/**
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.
250
251
*/
251
252
public HttpHeadersAssert isEmpty () {
252
253
this .namesAssert
@@ -256,7 +257,8 @@ public HttpHeadersAssert isEmpty() {
256
257
}
257
258
258
259
/**
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.
260
262
*/
261
263
public HttpHeadersAssert isNotEmpty () {
262
264
this .namesAssert
0 commit comments