source: josm/trunk/test/unit/org/openstreetmap/josm/tools/TerritoriesTestIT.java@ 16215

Last change on this file since 16215 was 16215, checked in by Don-vip, 4 years ago

fix compilation error

File size: 1.3 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.tools;
3
4import static org.junit.Assert.assertEquals;
5import static org.junit.Assert.assertFalse;
6
7import java.util.Collections;
8
9import org.junit.Rule;
10import org.junit.Test;
11import org.openstreetmap.josm.testutils.JOSMTestRules;
12
13import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
14
15/**
16 * Integration tests of {@link Territories} class.
17 */
18public class TerritoriesTestIT {
19
20 /**
21 * Test rules.
22 */
23 @Rule
24 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
25 public JOSMTestRules rules = new JOSMTestRules().projection();
26
27
28 /**
29 * Test of {@link Territories#initialize} method.
30 */
31 @Test
32 public void testUtilityClass() {
33 Logging.clearLastErrorAndWarnings();
34 Territories.initialize();
35 assertEquals("no errors or warnings", Collections.emptyList(), Logging.getLastErrorAndWarnings());
36 assertFalse("customTagsCache is non empty", Territories.customTagsCache.isEmpty());
37 assertFalse("iso3166Cache is non empty", Territories.iso3166Cache.isEmpty());
38 assertFalse("taginfoCache is non empty", Territories.taginfoCache.isEmpty());
39 assertFalse("taginfoGeofabrikCache is non empty", Territories.taginfoGeofabrikCache.isEmpty());
40 }
41}
Note: See TracBrowser for help on using the repository browser.