Package net.bnubot.util.crypto

Source Code of net.bnubot.util.crypto.Base64Test

/**
* This file is distributed under the GPL
* $Id: Base64Test.java 1600 2008-09-10 18:00:23Z scotta $
*/

package net.bnubot.util.crypto;

import junit.framework.TestCase;
import net.bnubot.util.ByteArray;

/**
* @author scotta
*/
public class Base64Test extends TestCase {

  public void testEncode() {
    assertEquals(Base64.encode(new ByteArray("asdf")), "YXNkZg==");
  }

  public void testDecode() {
    assertEquals(Base64.decode(new ByteArray("YXNkZg==")), "asdf");
  }
}
TOP

Related Classes of net.bnubot.util.crypto.Base64Test

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.