source: josm/trunk/test/unit/org/openstreetmap/josm/data/imagery/GetCapabilitiesParseHelperTest.java@ 16182

Last change on this file since 16182 was 16182, checked in by simon04, 4 years ago

Fix typos in Javadoc

  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.imagery;
3
4import static org.junit.Assert.assertEquals;
5
6import org.junit.Rule;
7import org.junit.Test;
8import org.openstreetmap.josm.testutils.JOSMTestRules;
9
10import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
11import net.trajano.commons.testing.UtilityClassTestUtil;
12
13/**
14 * Unit tests for class {@link GetCapabilitiesParseHelper}.
15 */
16public class GetCapabilitiesParseHelperTest {
17
18 /**
19 * Setup tests
20 */
21 @Rule
22 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
23 public JOSMTestRules test = new JOSMTestRules();
24
25 /**
26 * Tests that {@code GetCapabilitiesParseHelper} satisfies utility class criteria.
27 * @throws ReflectiveOperationException if an error occurs
28 */
29 @Test
30 public void testUtilityClass() throws ReflectiveOperationException {
31 UtilityClassTestUtil.assertUtilityClassWellDefined(GetCapabilitiesParseHelper.class);
32 }
33
34 /**
35 * Unit test of {@code GetCapabilitiesParseHelper#crsToCode} method.
36 */
37 @Test
38 public void testCrsToCode() {
39 assertEquals("EPSG:3127", GetCapabilitiesParseHelper.crsToCode("urn:ogc:def:crs:epsg:3127"));
40 assertEquals("EPSG:3127", GetCapabilitiesParseHelper.crsToCode("urn:ogc:def:crs:epsg::3127"));
41 assertEquals("EPSG:3127", GetCapabilitiesParseHelper.crsToCode("urn:ogc:def:crs:epsg:6.6:3127"));
42 }
43}
Note: See TracBrowser for help on using the repository browser.