mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-16 15:07:27 +00:00
Removed superflouos HttpMutableEntity interface
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/trunk/http-client@358388 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bed4d15b93
commit
605aaaa7db
@ -32,7 +32,6 @@
|
||||
|
||||
import org.apache.http.Header;
|
||||
import org.apache.http.HttpConnection;
|
||||
import org.apache.http.HttpMutableEntity;
|
||||
import org.apache.http.HttpMutableResponse;
|
||||
import org.apache.http.HttpVersion;
|
||||
import org.apache.http.StatusLine;
|
||||
@ -82,7 +81,7 @@ public void testIllegalResponseArg() throws Exception {
|
||||
public void testConnectionAutoClose() throws Exception {
|
||||
byte[] data = new byte[] {'1', '2', '3'};
|
||||
HttpConnection conn = new HttpConnectionMockup();
|
||||
HttpMutableEntity entity = new BasicHttpEntity();
|
||||
BasicHttpEntity entity = new BasicHttpEntity();
|
||||
entity.setChunked(false);
|
||||
entity.setContentLength(data.length);
|
||||
entity.setContent(new ByteArrayInputStream(data));
|
||||
@ -105,7 +104,7 @@ public void testConnectionAutoClose() throws Exception {
|
||||
public void testConnectionKeepAlive() throws Exception {
|
||||
byte[] data = new byte[] {'1', '2', '3'};
|
||||
HttpConnection conn = new HttpConnectionMockup();
|
||||
HttpMutableEntity entity = new BasicHttpEntity();
|
||||
BasicHttpEntity entity = new BasicHttpEntity();
|
||||
entity.setChunked(false);
|
||||
entity.setContentLength(data.length);
|
||||
entity.setContent(new ByteArrayInputStream(data));
|
||||
|
Loading…
x
Reference in New Issue
Block a user