hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r936401 - /httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/protocol/TestBasicHttpProcessor.java
Date Wed, 21 Apr 2010 17:52:38 GMT
Author: olegk
Date: Wed Apr 21 17:52:38 2010
New Revision: 936401

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

Modified:
    httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/protocol/TestBasicHttpProcessor.java

Modified: httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/protocol/TestBasicHttpProcessor.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/protocol/TestBasicHttpProcessor.java?rev=936401&r1=936400&r2=936401&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/protocol/TestBasicHttpProcessor.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/protocol/TestBasicHttpProcessor.java
Wed Apr 21 17:52:38 2010
@@ -120,23 +120,17 @@ public class TestBasicHttpProcessor exte
         BasicHttpProcessor instance = new BasicHttpProcessor();
 
         instance.addRequestInterceptor(itcp1);
-        instance.addRequestInterceptor(itcp2, Integer.MAX_VALUE);
+        instance.addRequestInterceptor(itcp2, 1);
         int itcpCount = instance.getRequestInterceptorCount();
         assertEquals(2, itcpCount);
         assertEquals(itcp1, instance.getRequestInterceptor(0));
         assertEquals(itcp2, instance.getRequestInterceptor(itcpCount - 1));
-
-        instance = new BasicHttpProcessor();
-        instance.addRequestInterceptor(itcp1, -1);
-        assertEquals(1, itcpCount);
-        assertEquals(itcp1, instance.getRequestInterceptor(0));
-        assertEquals(itcp1, instance.getRequestInterceptor(itcpCount - 1));
     }
 
     public void testAddRequestInterceptorMiddleIndex() {
         HttpRequestInterceptor itcp1 = new TestHttpRequestInterceptorPlaceHolder();
         BasicHttpProcessor instance = new BasicHttpProcessor();
-        instance.addRequestInterceptor(itcp1, 2);
+        instance.addRequestInterceptor(itcp1, 0);
     }
 
     public void testClearByClass() {



Mime
View raw message