commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1302651 - /commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/binary/Base64InputStreamTest.java
Date Mon, 19 Mar 2012 20:53:59 GMT
Author: ggregory
Date: Mon Mar 19 20:53:59 2012
New Revision: 1302651

URL: http://svn.apache.org/viewvc?rev=1302651&view=rev
Log:
Really make sure we test skipping number of characters larger than the internal buffer.

Modified:
    commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/binary/Base64InputStreamTest.java

Modified: commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/binary/Base64InputStreamTest.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/binary/Base64InputStreamTest.java?rev=1302651&r1=1302650&r2=1302651&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/binary/Base64InputStreamTest.java
(original)
+++ commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/binary/Base64InputStreamTest.java
Mon Mar 19 20:53:59 2012
@@ -485,7 +485,7 @@ public class Base64InputStreamTest {
     public void testSkipBig() throws Throwable {
         InputStream ins = new ByteArrayInputStream(StringUtils.getBytesIso8859_1(ENCODED_B64));
         Base64InputStream b64stream = new Base64InputStream(ins);
-        assertEquals(6, b64stream.skip(1024));
+        assertEquals(6, b64stream.skip(Integer.MAX_VALUE));
         // End of stream reached
         assertEquals(-1, b64stream.read());
         assertEquals(-1, b64stream.read());



Mime
View raw message