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

Last change on this file since 11085 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.
2package org.openstreetmap.josm.gui;
3
4import org.junit.Rule;
5import org.junit.Test;
6import org.openstreetmap.josm.testutils.JOSMTestRules;
7
8import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
9import nl.jqno.equalsverifier.EqualsVerifier;
10
11/**
12 * Test {@link MapStatus}
13 */
14public 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.