source: josm/trunk/test/unit/org/openstreetmap/josm/gui/MapStatusTest.java@ 14004

Last change on this file since 14004 was 14004, checked in by Don-vip, 6 years ago

add workaround to https://github.com/jqno/equalsverifier/issues/197

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui;
3
4import org.junit.Rule;
5import org.junit.Test;
6import org.openstreetmap.josm.TestUtils;
7import org.openstreetmap.josm.testutils.JOSMTestRules;
8
9import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
10import nl.jqno.equalsverifier.EqualsVerifier;
11import nl.jqno.equalsverifier.Warning;
12
13/**
14 * Test {@link MapStatus}
15 */
16public 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.