Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.command;
|
---|
3 |
|
---|
4 | import org.junit.Test;
|
---|
5 | import org.openstreetmap.josm.data.osm.DataSet;
|
---|
6 | import org.openstreetmap.josm.data.osm.Way;
|
---|
7 | import org.openstreetmap.josm.gui.layer.OsmDataLayer;
|
---|
8 |
|
---|
9 | import nl.jqno.equalsverifier.EqualsVerifier;
|
---|
10 | import nl.jqno.equalsverifier.Warning;
|
---|
11 |
|
---|
12 | /**
|
---|
13 | * Unit tests of {@link ChangeNodesCommand} class.
|
---|
14 | */
|
---|
15 | public class ChangeNodesCommandTest {
|
---|
16 |
|
---|
17 | /**
|
---|
18 | * Unit test of methods {@link ChangeNodesCommand#equals} and {@link ChangeNodesCommand#hashCode}.
|
---|
19 | */
|
---|
20 | @Test
|
---|
21 | public void equalsContract() {
|
---|
22 | EqualsVerifier.forClass(ChangeNodesCommand.class).usingGetClass()
|
---|
23 | .withPrefabValues(Way.class,
|
---|
24 | new Way(1), new Way(2))
|
---|
25 | .withPrefabValues(OsmDataLayer.class,
|
---|
26 | new OsmDataLayer(new DataSet(), "1", null), new OsmDataLayer(new DataSet(), "2", null))
|
---|
27 | .suppress(Warning.NONFINAL_FIELDS)
|
---|
28 | .verify();
|
---|
29 | }
|
---|
30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.