aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2013-06-22 16:05:43 +0200
committerBananeweizen <bananeweizen@gmx.de>2013-06-22 16:05:43 +0200
commit3bab16fcb063a69b3c894343cefcc0eb54958843 (patch)
tree84a9ec25fd0c4fe91def478e54ec235b75f94c84 /tests
parent01bfdcaeeae619fd638f48b8fe94463e8131edd2 (diff)
downloadcgeo-3bab16fcb063a69b3c894343cefcc0eb54958843.zip
cgeo-3bab16fcb063a69b3c894343cefcc0eb54958843.tar.gz
cgeo-3bab16fcb063a69b3c894343cefcc0eb54958843.tar.bz2
fix #2914: bike navigation
Diffstat (limited to 'tests')
-rw-r--r--tests/src/cgeo/geocaching/apps/cache/navi/NavigationAppFactoryTest.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/apps/cache/navi/NavigationAppFactoryTest.java b/tests/src/cgeo/geocaching/apps/cache/navi/NavigationAppFactoryTest.java
new file mode 100644
index 0000000..2d510ab
--- /dev/null
+++ b/tests/src/cgeo/geocaching/apps/cache/navi/NavigationAppFactoryTest.java
@@ -0,0 +1,19 @@
+package cgeo.geocaching.apps.cache.navi;
+
+import cgeo.geocaching.apps.cache.navi.NavigationAppFactory.NavigationAppsEnum;
+
+import java.util.HashSet;
+
+import junit.framework.TestCase;
+
+public class NavigationAppFactoryTest extends TestCase {
+
+ public static void testUniqueNavigationAppIds() throws Exception {
+ final HashSet<Integer> idSet = new HashSet<Integer>();
+ for (NavigationAppsEnum navigationApp : NavigationAppsEnum.values()) {
+ idSet.add(navigationApp.id);
+ }
+ assertEquals("Duplicate id in " + NavigationAppsEnum.class.getSimpleName(), NavigationAppsEnum.values().length, idSet.size());
+ }
+
+}