commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1157579 - /commons/proper/codec/trunk/src/test/org/apache/commons/codec/binary/Base64Test.java
Date Sun, 14 Aug 2011 18:04:14 GMT
Author: sebb
Date: Sun Aug 14 18:04:13 2011
New Revision: 1157579

URL: http://svn.apache.org/viewvc?rev=1157579&view=rev
Log:
Fix mangled chars (was e-acute, see r799815)

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

Modified: commons/proper/codec/trunk/src/test/org/apache/commons/codec/binary/Base64Test.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/test/org/apache/commons/codec/binary/Base64Test.java?rev=1157579&r1=1157578&r2=1157579&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/test/org/apache/commons/codec/binary/Base64Test.java (original)
+++ commons/proper/codec/trunk/src/test/org/apache/commons/codec/binary/Base64Test.java Sun
Aug 14 18:04:13 2011
@@ -93,8 +93,8 @@ public class Base64Test {
         encodedContent = StringUtils.newStringUtf8(encodedBytes);
         assertTrue("encoding hello world", encodedContent.equals("SGVsbG8gV29ybGQ="));
 
-        // bogus characters to decode (to skip actually)
-        byte[] decode = b64.decode("SGVsbG{������}8gV29ybGQ=");
+        // bogus characters to decode (to skip actually) {e-acute*6}
+        byte[] decode = b64.decode("SGVsbG{\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9}8gV29ybGQ=");
         String decodeString = StringUtils.newStringUtf8(decode);
         assertTrue("decode hello world", decodeString.equals("Hello World"));        
     }



Mime
View raw message