KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > jayasoft > ivy > util > StringUtilsTest


1 package fr.jayasoft.ivy.util;
2
3 import junit.framework.TestCase;
4
5 public class StringUtilsTest extends TestCase {
6     public void testEncryption() {
7         assertEquals("jayasoft", StringUtils.decrypt(StringUtils.encrypt("jayasoft")));
8         assertEquals("yet another string with 126 digits and others :;%_-$& characters", StringUtils.decrypt(StringUtils.encrypt("yet another string with 126 digits and others :;%_-$& characters")));
9         
10         assertFalse("jayasoft".equals(StringUtils.encrypt("jayasoft")));
11     }
12 }
13
Popular Tags