Last change
on this file since 12248 was 11085, checked in by Don-vip, 8 years ago |
sonar - squid:S2162 - "equals" methods should be symmetric and work for subclasses
|
-
Property svn:eol-style
set to
native
|
File size:
825 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui;
|
---|
3 |
|
---|
4 | import org.junit.Rule;
|
---|
5 | import org.junit.Test;
|
---|
6 | import org.openstreetmap.josm.testutils.JOSMTestRules;
|
---|
7 |
|
---|
8 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
---|
9 | import nl.jqno.equalsverifier.EqualsVerifier;
|
---|
10 |
|
---|
11 | /**
|
---|
12 | * Test {@link MapStatus}
|
---|
13 | */
|
---|
14 | public class MapStatusTest {
|
---|
15 |
|
---|
16 | /**
|
---|
17 | * Setup test.
|
---|
18 | */
|
---|
19 | @Rule
|
---|
20 | @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
|
---|
21 | public JOSMTestRules test = new JOSMTestRules();
|
---|
22 |
|
---|
23 | /**
|
---|
24 | * Unit test of methods {@link MapStatus.StatusTextHistory#equals} and {@link MapStatus.StatusTextHistory#hashCode}.
|
---|
25 | */
|
---|
26 | @Test
|
---|
27 | public void testEqualsContract() {
|
---|
28 | EqualsVerifier.forClass(MapStatus.StatusTextHistory.class).withIgnoredFields("text").verify();
|
---|
29 | }
|
---|
30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.