blob: 04c0a0725ff52700a4f4e8e9d0149fb2e7fd4be5 [file] [log] [blame]
package fr.jayasoft.ivy.util;
import junit.framework.TestCase;
public class StringUtilsTest extends TestCase {
public void testEncryption() {
assertEquals("jayasoft", StringUtils.decrypt(StringUtils.encrypt("jayasoft")));
assertEquals("yet another string with 126 digits and others :;%_-$& characters", StringUtils.decrypt(StringUtils.encrypt("yet another string with 126 digits and others :;%_-$& characters")));
assertFalse("jayasoft".equals(StringUtils.encrypt("jayasoft")));
}
}