hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r418583 - /jakarta/httpcomponents/httpclient/trunk/src/test/org/apache/httpclient/impl/TestDefaultResponseConsumedWatcher.java
Date Sun, 02 Jul 2006 12:18:39 GMT
Author: olegk
Date: Sun Jul  2 05:18:38 2006
New Revision: 418583

URL: http://svn.apache.org/viewvc?rev=418583&view=rev
Log:
[HTTPCORE-5] Made NameValuePair, StatusLine, RequestLine interfaces

Modified:
    jakarta/httpcomponents/httpclient/trunk/src/test/org/apache/httpclient/impl/TestDefaultResponseConsumedWatcher.java

Modified: jakarta/httpcomponents/httpclient/trunk/src/test/org/apache/httpclient/impl/TestDefaultResponseConsumedWatcher.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpclient/trunk/src/test/org/apache/httpclient/impl/TestDefaultResponseConsumedWatcher.java?rev=418583&r1=418582&r2=418583&view=diff
==============================================================================
--- jakarta/httpcomponents/httpclient/trunk/src/test/org/apache/httpclient/impl/TestDefaultResponseConsumedWatcher.java
(original)
+++ jakarta/httpcomponents/httpclient/trunk/src/test/org/apache/httpclient/impl/TestDefaultResponseConsumedWatcher.java
Sun Jul  2 05:18:38 2006
@@ -34,7 +34,6 @@
 import org.apache.http.HttpConnection;
 import org.apache.http.HttpResponse;
 import org.apache.http.HttpVersion;
-import org.apache.http.StatusLine;
 import org.apache.http.entity.BasicHttpEntity;
 import org.apache.http.impl.DefaultHttpParams;
 import org.apache.http.message.BasicHttpResponse;
@@ -86,8 +85,7 @@
         entity.setContentLength(data.length);
         entity.setContent(new ByteArrayInputStream(data));
         
-        StatusLine statusline = new StatusLine(HttpVersion.HTTP_1_0, 200, "OK");
-        HttpResponse response = new BasicHttpResponse(statusline);
+        HttpResponse response = new BasicHttpResponse(HttpVersion.HTTP_1_0, 200);
         response.addHeader("Connection", "Close");
         response.setParams(new DefaultHttpParams(null));
         response.setEntity(entity);
@@ -108,8 +106,7 @@
         entity.setContentLength(data.length);
         entity.setContent(new ByteArrayInputStream(data));
         
-        StatusLine statusline = new StatusLine(HttpVersion.HTTP_1_1, 200, "OK");
-        HttpResponse response = new BasicHttpResponse(statusline);
+        HttpResponse response = new BasicHttpResponse(HttpVersion.HTTP_1_1, 200);
         response.addHeader("Connection", "Keep-alive");
         response.setParams(new DefaultHttpParams(null));
         response.setEntity(entity);



Mime
View raw message