Back to project page qiniu-android.
The source code is released under:
MIT License
If you think the Android project qiniu-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.qiniu.android; /* w ww . j a v a 2 s . c o m*/ import android.test.AndroidTestCase; import com.qiniu.android.utils.UrlSafeBase64; import junit.framework.Assert; import java.io.UnsupportedEncodingException; public class Base64Test extends AndroidTestCase { public void testEncode() throws UnsupportedEncodingException { String data = "??/+="; String result = UrlSafeBase64.encodeToString(data); Assert.assertEquals("5L2g5aW9Lys9", result); } }