1 17 package org.apache.geronimo.util; 18 19 import org.apache.geronimo.testsupport.TestSupport; 20 21 24 public class SimpleEncryptionTest extends TestSupport { 25 public void testSimpleEncryption() { 26 Object [] source = new Object []{"This is a test", new Integer (14)}; 27 String text = SimpleEncryption.encrypt(source); 28 Object [] result = (Object []) SimpleEncryption.decrypt(text); 29 assertEquals(2, result.length); 30 assertEquals("This is a test", result[0]); 31 assertEquals(new Integer (14), result[1]); 32 } 33 } 34 | Popular Tags |