package com.tpt.nano.transform;

import java.util.Arrays;

import junit.framework.TestCase;

public class Base64TransformTest extends TestCase {
	
	public void testBase64() throws Exception {
		byte[] data = "hello world!".getBytes();
		Base64Transform transform = new Base64Transform();
		
		String value = transform.write(data);
		byte[] copy = transform.read(value);
		System.out.println(new String(copy));

		assertTrue(Arrays.equals(data, copy));
	}

}

package com.tpt.nano.transform;

import java.util.Arrays;

import junit.framework.TestCase;

public class Base64TransformTest extends TestCase {
	
	public void testBase64() throws Exception {
		byte[] data = "hello world!".getBytes();
		Base64Transform transform = new Base64Transform();
		
		String value = transform.write(data);
		byte[] copy = transform.read(value);
		System.out.println(new String(copy));

		assertTrue(Arrays.equals(data, copy));
		
		
	}

}

remove eclipse project files