diff options
Diffstat (limited to 'tests/src/cgeo/geocaching/utils/CryptUtilsTest.java')
| -rw-r--r-- | tests/src/cgeo/geocaching/utils/CryptUtilsTest.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/utils/CryptUtilsTest.java b/tests/src/cgeo/geocaching/utils/CryptUtilsTest.java new file mode 100644 index 0000000..22c87f6 --- /dev/null +++ b/tests/src/cgeo/geocaching/utils/CryptUtilsTest.java @@ -0,0 +1,15 @@ +package cgeo.geocaching.utils; + +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")); + } +} |
