예제 #1
0
 @Test
 public void testUniqueGeoIds() {
   ApplicationInfo.info(
       CantonTest.class, ApplicationInfo.TEST, ApplicationInfo.UNIT_TEST, "testUniqueGeoIds");
   Set<Integer> uniqueIds = new HashSet<Integer>();
   for (Canton canton : Canton.values()) {
     uniqueIds.add(canton.asGeoId());
   }
   assertEquals(Canton.values().length, uniqueIds.size());
 }
예제 #2
0
 /** Test of values method, of class Canton. */
 @Test
 public void testValues() {
   ApplicationInfo.info(
       CantonTest.class, ApplicationInfo.TEST, ApplicationInfo.UNIT_TEST, "testValues");
   Canton[] result = Canton.values();
   assertEquals(26, result.length);
 }