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