Polish test
This test should not rely on a particular content-type as none is defined on the producing end, not on the requesting end.
This commit is contained in:
@@ -68,7 +68,6 @@ class RequestMappingIntegrationTests extends AbstractRequestMappingIntegrationTe
|
||||
HttpHeaders headers = getRestTemplate().headForHeaders(url);
|
||||
String contentType = headers.getFirst("Content-Type");
|
||||
assertThat(contentType).isNotNull();
|
||||
assertThat(contentType.toLowerCase()).isEqualTo("text/html;charset=utf-8");
|
||||
assertThat(headers.getContentLength()).isEqualTo(3);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user