From 4c112ed7a840c3ecc28322213e01820cec92df20 Mon Sep 17 00:00:00 2001 From: Stephan Merker Date: Mon, 3 Oct 2011 17:40:09 +0200 Subject: Refactoring: put tests into same java package as tested class - fixes #587 - test suite and 3 tests (regex and whitespace perf tests) remain in cgeo.geocaching.test --- tests/src/cgeo/geocaching/utils/CryptUtilsTest.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/src/cgeo/geocaching/utils/CryptUtilsTest.java (limited to 'tests/src/cgeo/geocaching/utils/CryptUtilsTest.java') 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")); + } +} -- cgit v1.1