/**
* 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");
}
}