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:
Oleg Kalnichevski 2005-12-21 21:17:25 +00:00
parent bed4d15b93
commit 605aaaa7db
1 changed files with 2 additions and 3 deletions

View File

@ -32,7 +32,6 @@ import java.io.ByteArrayInputStream;
import org.apache.http.Header; import org.apache.http.Header;
import org.apache.http.HttpConnection; import org.apache.http.HttpConnection;
import org.apache.http.HttpMutableEntity;
import org.apache.http.HttpMutableResponse; import org.apache.http.HttpMutableResponse;
import org.apache.http.HttpVersion; import org.apache.http.HttpVersion;
import org.apache.http.StatusLine; import org.apache.http.StatusLine;
@ -82,7 +81,7 @@ public class TestDefaultResponseConsumedWatcher extends TestCase {
public void testConnectionAutoClose() throws Exception { public void testConnectionAutoClose() throws Exception {
byte[] data = new byte[] {'1', '2', '3'}; byte[] data = new byte[] {'1', '2', '3'};
HttpConnection conn = new HttpConnectionMockup(); HttpConnection conn = new HttpConnectionMockup();
HttpMutableEntity entity = new BasicHttpEntity(); BasicHttpEntity entity = new BasicHttpEntity();
entity.setChunked(false); entity.setChunked(false);
entity.setContentLength(data.length); entity.setContentLength(data.length);
entity.setContent(new ByteArrayInputStream(data)); entity.setContent(new ByteArrayInputStream(data));
@ -105,7 +104,7 @@ public class TestDefaultResponseConsumedWatcher extends TestCase {
public void testConnectionKeepAlive() throws Exception { public void testConnectionKeepAlive() throws Exception {
byte[] data = new byte[] {'1', '2', '3'}; byte[] data = new byte[] {'1', '2', '3'};
HttpConnection conn = new HttpConnectionMockup(); HttpConnection conn = new HttpConnectionMockup();
HttpMutableEntity entity = new BasicHttpEntity(); BasicHttpEntity entity = new BasicHttpEntity();
entity.setChunked(false); entity.setChunked(false);
entity.setContentLength(data.length); entity.setContentLength(data.length);
entity.setContent(new ByteArrayInputStream(data)); entity.setContent(new ByteArrayInputStream(data));