Improve Javadoc for new HttpHeaders features

This commit is contained in:
Sam Brannen
2025-11-12 15:11:33 +01:00
parent 347040c5a4
commit deca37da4a
2 changed files with 27 additions and 9 deletions
@@ -67,6 +67,9 @@ class HttpHeadersTests {
// content-type value is cached by ReadOnlyHttpHeaders
assertThat(readOnly.getContentType()).isEqualTo(MediaType.APPLICATION_JSON);
assertThat(writable.getContentType()).isEqualTo(MediaType.TEXT_PLAIN);
// The HttpHeaders "copy constructor" creates an HttpHeaders instance
// that mutates the state of the original HttpHeaders instance.
assertThat(headers.getContentType()).isEqualTo(MediaType.TEXT_PLAIN);
}
@Test