commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1301976 - /commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/binary/Base64InputStreamTest.java
Date Sat, 17 Mar 2012 18:37:35 GMT
Author: tn
Date: Sat Mar 17 18:37:35 2012
New Revision: 1301976

URL: http://svn.apache.org/viewvc?rev=1301976&view=rev
Log:
Use existing string resource for unit test.

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=1301976&r1=1301975&r2=1301976&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
Sat Mar 17 18:37:35 2012
@@ -62,7 +62,7 @@ public class Base64InputStreamTest {
         ByteArrayOutputStream bos = new ByteArrayOutputStream();
         Base64OutputStream base64os = new Base64OutputStream(bos);
 
-        base64os.write("Hello World!".getBytes());
+        base64os.write(STRING_FIXTURE.getBytes());
 
         ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
         Base64InputStream ins = new Base64InputStream(bis);
@@ -78,7 +78,7 @@ public class Base64InputStreamTest {
         }
         String str = sb.toString();
 
-        assertEquals("ello World!", str);
+        assertEquals(STRING_FIXTURE.substring(1), str);
     }
 
     /**



Mime
View raw message