hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1180365 - /httpcomponents/httpclient/branches/4.1.x/httpclient/src/test/java/org/apache/http/impl/client/TestBasicResponseHandler.java
Date Sat, 08 Oct 2011 11:57:25 GMT
Author: olegk
Date: Sat Oct  8 11:57:25 2011
New Revision: 1180365

URL: http://svn.apache.org/viewvc?rev=1180365&view=rev
Log:
Fixed broken test case

Modified:
    httpcomponents/httpclient/branches/4.1.x/httpclient/src/test/java/org/apache/http/impl/client/TestBasicResponseHandler.java

Modified: httpcomponents/httpclient/branches/4.1.x/httpclient/src/test/java/org/apache/http/impl/client/TestBasicResponseHandler.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/branches/4.1.x/httpclient/src/test/java/org/apache/http/impl/client/TestBasicResponseHandler.java?rev=1180365&r1=1180364&r2=1180365&view=diff
==============================================================================
--- httpcomponents/httpclient/branches/4.1.x/httpclient/src/test/java/org/apache/http/impl/client/TestBasicResponseHandler.java
(original)
+++ httpcomponents/httpclient/branches/4.1.x/httpclient/src/test/java/org/apache/http/impl/client/TestBasicResponseHandler.java
Sat Oct  8 11:57:25 2011
@@ -27,7 +27,6 @@
 
 package org.apache.http.impl.client;
 
-import java.io.ByteArrayInputStream;
 import java.io.InputStream;
 
 import junit.framework.Assert;
@@ -51,7 +50,7 @@ public class TestBasicResponseHandler {
     public void testSuccessfulResponse() throws Exception {
         StatusLine sl = new BasicStatusLine(HttpVersion.HTTP_1_1, 200, "OK");
         HttpResponse response = Mockito.mock(HttpResponse.class);
-        HttpEntity entity = StringEntity.create("stuff");
+        HttpEntity entity = new StringEntity("stuff");
         Mockito.when(response.getStatusLine()).thenReturn(sl);
         Mockito.when(response.getEntity()).thenReturn(entity);
 



Mime
View raw message