source: josm/trunk/test/unit/org/openstreetmap/josm/spi/preferences/MapListSettingTest.java@ 12884

Last change on this file since 12884 was 12884, checked in by bastiK, 7 years ago

see #15229 - fix unit tests

  • Property svn:eol-style set to native
File size: 887 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.spi.preferences;
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 MapListSetting}.
13 */
14public class MapListSettingTest {
15 /**
16 * This is a preference test
17 */
18 @Rule
19 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
20 public JOSMTestRules test = new JOSMTestRules().preferences();
21
22 /**
23 * Unit test of methods {@link MapListSetting#equals} and {@link MapListSetting#hashCode}.
24 */
25 @Test
26 public void testEqualsContract() {
27 EqualsVerifier.forClass(MapListSetting.class).usingGetClass()
28 .withIgnoredFields("isNew", "time")
29 .verify();
30 }
31}
Note: See TracBrowser for help on using the repository browser.