aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/apps/cache/navi/NavigationAppFactoryTest.java
blob: 894d02859d8c823b6600ad11bd2ad11e7e1f0cc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package cgeo.geocaching.apps.cache.navi;

import static org.assertj.core.api.Assertions.assertThat;

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);
        }
        assertThat(idSet).doesNotHaveDuplicates();
    }

}