Feedback from review:

+ check no content in HEAD response
This commit is contained in:
gregw 2020-09-02 13:01:20 +02:00
parent a6b7f73019
commit 418093af28
1 changed files with 5 additions and 0 deletions

View File

@ -256,6 +256,11 @@ public class HugeResourceTest
request.send(responseListener);
Response response = responseListener.get(5, TimeUnit.SECONDS);
try (InputStream in = responseListener.getInputStream())
{
assertThat(in.read(), is(-1));
}
assertThat("HTTP Response Code", response.getStatus(), is(200));
// dumpResponse(response);