source: josm/trunk/test/unit/org/openstreetmap/josm/data/correction/TagCorrectionTest.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: 810 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.correction;
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 * Unit tests for class {@link TagCorrection}.
13 */
14public class TagCorrectionTest {
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 TagCorrection#equals} and {@link TagCorrection#hashCode}.
25 */
26 @Test
27 public void testEqualsContract() {
28 EqualsVerifier.forClass(TagCorrection.class).usingGetClass().verify();
29 }
30}
Note: See TracBrowser for help on using the repository browser.