Changeset 11360 in josm for trunk/test/unit
- Timestamp:
- 2016-12-04T15:06:02+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/tools/TerritoriesTest.java
r11324 r11360 2 2 package org.openstreetmap.josm.tools; 3 3 4 import static org.junit.Assert.assertEquals;5 4 import static org.junit.Assert.assertTrue; 6 7 import java.util.Set;8 5 9 6 import org.junit.Rule; … … 34 31 35 32 private static void check(String name, LatLon ll, String ... expectedCodes) { 36 Set<String> codes = Territories.getIso3166Codes(ll);37 assertEquals(name + " -> " + codes, expectedCodes.length, codes.size());38 33 for (String e : expectedCodes) { 39 assertTrue( e, codes.contains(e));34 assertTrue(name + " " + e, Territories.isIso3166Code(e, ll)); 40 35 } 41 36 }
Note:
See TracChangeset
for help on using the changeset viewer.