commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r928137 - /commons/proper/codec/trunk/src/test/org/apache/commons/codec/binary/Base64Test.java
Date Sat, 27 Mar 2010 04:00:48 GMT
Author: sebb
Date: Sat Mar 27 04:00:48 2010
New Revision: 928137

URL: http://svn.apache.org/viewvc?rev=928137&view=rev
Log:
Add missing (successful) test
Fix up Javadoc references

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=928137&r1=928136&r2=928137&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 Sat
Mar 27 04:00:48 2010
@@ -529,7 +529,7 @@ public class Base64Test extends TestCase
      * <li>BASE64("foobar") = "Zm9vYmFy"</li>
      * </ul>
      * 
-     * @see http://tools.ietf.org/html/rfc4648
+     * @see <a href="http://tools.ietf.org/html/rfc4648">http://tools.ietf.org/html/rfc4648</a>
      */
     public void testRfc4648Section10Decode() {
         assertEquals("", StringUtils.newStringUsAscii(Base64.decodeBase64("")));
@@ -563,9 +563,10 @@ public class Base64Test extends TestCase
      * <li>BASE64("foobar") = "Zm9vYmFy"</li>
      * </ul>
      * 
-     * @see http://tools.ietf.org/html/rfc4648
+     * @see <a href="http://tools.ietf.org/html/rfc4648">http://tools.ietf.org/html/rfc4648</a>
      */
     public void testRfc4648Section10Encode() {
+        assertEquals("", Base64.encodeBase64String(StringUtils.getBytesUtf8("")));
         //assertEquals("Zg==", Base64.encodeBase64String(StringUtils.getBytesUtf8("f")));
         //assertEquals("Zm8=", Base64.encodeBase64String(StringUtils.getBytesUtf8("fo")));
         //assertEquals("Zm9v", Base64.encodeBase64String(StringUtils.getBytesUtf8("foo")));



Mime
View raw message