hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r936058 - /httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestIdentitynputStream.java
Date Tue, 20 Apr 2010 20:54:53 GMT
Author: olegk
Date: Tue Apr 20 20:54:53 2010
New Revision: 936058

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

Modified:
    httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestIdentitynputStream.java

Modified: httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestIdentitynputStream.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestIdentitynputStream.java?rev=936058&r1=936057&r2=936058&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestIdentitynputStream.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestIdentitynputStream.java
Tue Apr 20 20:54:53 2010
@@ -104,7 +104,8 @@ public class TestIdentitynputStream exte
         byte[] input = new byte[] {'a', 'b', 'c'};
         SessionInputBufferMockup receiver = new SessionInputBufferMockup(input);
         IdentityInputStream instream = new IdentityInputStream(receiver);
-        assertTrue(instream.available() > 0);        
+        instream.read();
+        assertTrue(instream.available() == 2);        
     }
     
 }



Mime
View raw message