jetty-9: HttpManyWaysToAsyncCommitTest added

This commit is contained in:
Thomas Becker 2012-08-17 17:34:53 +02:00
parent b0537707e3
commit be73cf1972
2 changed files with 1031 additions and 4 deletions

View File

@ -556,8 +556,7 @@ public class HttpManyWaysToCommitTest
writer.println("\r\n");
writer.flush();
Response response = readResponse(reader);
return response;
return readResponse(reader);
}
private Response readResponse(BufferedReader reader) throws IOException
@ -651,8 +650,9 @@ public class HttpManyWaysToCommitTest
char c = (char)reader.read();
body.append(c);
}
line = reader.readLine();
// assertThat("chunk is followed by an empty line", line, is("")); //TODO: is this right? - NO. Don't think you can really do chunks with readline generally, but maybe for this test is OK.
reader.readLine();
// assertThat("chunk is followed by an empty line", line, is("")); //TODO: is this right? - NO. Don't
// think you can really do chunks with read line generally, but maybe for this test is OK.
}
return body;
}