hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1208477 [3/3] - in /httpcomponents/httpcore/trunk: httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/ httpcore-nio/src/main/java/org/apache/http/nio/protocol/ httpcore-nio/src/test/java/org/apache/http/impl/nio/reactor/ httpcore-...
Date Wed, 30 Nov 2011 16:06:17 GMT
Modified: httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/protocol/TestHttpService.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/protocol/TestHttpService.java?rev=1208477&r1=1208476&r2=1208477&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/protocol/TestHttpService.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/protocol/TestHttpService.java
Wed Nov 30 16:06:12 2011
@@ -159,12 +159,12 @@ public class TestHttpService {
         HttpRequest request = new BasicHttpRequest("GET", "/", HttpVersion.HTTP_1_0);
         Mockito.when(conn.receiveRequestHeader()).thenReturn(request);
         HttpResponse response = new BasicHttpResponse(HttpVersion.HTTP_1_0, 200, "OK");
-        Mockito.when(responseFactory.newHttpResponse(HttpVersion.HTTP_1_0, 200, context)).thenReturn(response);
+        Mockito.when(responseFactory.newHttpResponse(HttpVersion.HTTP_1_1, 200, context)).thenReturn(response);
         Mockito.when(connReuseStrategy.keepAlive(response, context)).thenReturn(false);
 
         httpservice.handleRequest(conn, context);
 
-        Mockito.verify(responseFactory).newHttpResponse(HttpVersion.HTTP_1_0, 200, context);
+        Mockito.verify(responseFactory).newHttpResponse(HttpVersion.HTTP_1_1, 200, context);
     }
 
     @Test



Mime
View raw message