aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/test/CryptUtilsTest.java
blob: 796694399cc2fcdb4208011ad191d949a2785f34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package cgeo.geocaching.test;

import cgeo.geocaching.utils.CryptUtils;

import junit.framework.TestCase;

@SuppressWarnings("static-method")
public class CryptUtilsTest extends TestCase {
    public void testROT13() {
        assertEquals("", CryptUtils.rot13(""));
        assertEquals("", CryptUtils.rot13((String) null));
        assertEquals("Pnpur uvag", CryptUtils.rot13("Cache hint"));
        assertEquals("123", CryptUtils.rot13("123"));
    }
}