Last change
on this file since 10758 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.
|
---|
2 | package org.openstreetmap.josm.data.coor;
|
---|
3 |
|
---|
4 | import java.text.DecimalFormat;
|
---|
5 |
|
---|
6 | import org.junit.Before;
|
---|
7 | import org.junit.Test;
|
---|
8 | import org.openstreetmap.josm.JOSMFixture;
|
---|
9 |
|
---|
10 | import nl.jqno.equalsverifier.EqualsVerifier;
|
---|
11 | import nl.jqno.equalsverifier.Warning;
|
---|
12 |
|
---|
13 | /**
|
---|
14 | * Unit tests for class {@link CachedLatLon}.
|
---|
15 | */
|
---|
16 | public 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.