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;
|
---|
7 | import org.openstreetmap.josm.testutils.JOSMTestRules;
|
---|
8 |
|
---|
9 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
---|
10 | import nl.jqno.equalsverifier.EqualsVerifier;
|
---|
11 | import nl.jqno.equalsverifier.Warning;
|
---|
12 |
|
---|
13 | /**
|
---|
14 | * Test {@link MapStatus}
|
---|
15 | */
|
---|
16 | public class MapStatusTest {
|
---|
17 |
|
---|
18 | /**
|
---|
19 | * Setup test.
|
---|
20 | */
|
---|
21 | @Rule
|
---|
22 | @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
|
---|
23 | public JOSMTestRules test = new JOSMTestRules();
|
---|
24 |
|
---|
25 | /**
|
---|
26 | * Unit test of methods {@link MapStatus.StatusTextHistory#equals} and {@link MapStatus.StatusTextHistory#hashCode}.
|
---|
27 | */
|
---|
28 | @Test
|
---|
29 | public void testEqualsContract() {
|
---|
30 | TestUtils.assumeWorkingEqualsVerifier();
|
---|
31 | EqualsVerifier.forClass(MapStatus.StatusTextHistory.class)
|
---|
32 | .suppress(Warning.ANNOTATION) // FIXME: To remove once https://github.com/jqno/equalsverifier/issues/197 is fixed
|
---|
33 | .withIgnoredFields("text").verify();
|
---|
34 | }
|
---|
35 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.