source: josm/trunk/test/unit/org/openstreetmap/josm/data/coor/CachedLatLonTest.java@ 10915

Last change on this file since 10915 was 10758, checked in by Don-vip, 8 years ago

sonar - squid:S3578 - Test methods should comply with a naming convention

  • Property svn:eol-style set to native
File size: 930 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.coor;
3
4import java.text.DecimalFormat;
5
6import org.junit.Before;
7import org.junit.Test;
8import org.openstreetmap.josm.JOSMFixture;
9
10import nl.jqno.equalsverifier.EqualsVerifier;
11import nl.jqno.equalsverifier.Warning;
12
13/**
14 * Unit tests for class {@link CachedLatLon}.
15 */
16public class CachedLatLonTest {
17
18 /**
19 * Setup test.
20 */
21 @Before
22 public void setUp() {
23 JOSMFixture.createUnitTestFixture().init();
24 }
25
26 /**
27 * Unit test of methods {@link CachedLatLon#equals} and {@link CachedLatLon#hashCode}.
28 */
29 @Test
30 public void testEqualsContract() {
31 EqualsVerifier.forClass(CachedLatLon.class).usingGetClass()
32 .suppress(Warning.NONFINAL_FIELDS)
33 .withPrefabValues(DecimalFormat.class, new DecimalFormat("00.0"), new DecimalFormat("00.000"))
34 .verify();
35 }
36}
Note: See TracBrowser for help on using the repository browser.