| 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.gui.layer.OsmDataLayer;
|
|---|
| 7 |
|
|---|
| 8 | import nl.jqno.equalsverifier.EqualsVerifier;
|
|---|
| 9 | import nl.jqno.equalsverifier.Warning;
|
|---|
| 10 |
|
|---|
| 11 | /**
|
|---|
| 12 | * Unit tests of {@link AddPrimitivesCommand} class.
|
|---|
| 13 | */
|
|---|
| 14 | public class AddPrimitivesCommandTest {
|
|---|
| 15 |
|
|---|
| 16 | /**
|
|---|
| 17 | * Unit test of methods {@link AddPrimitivesCommand#equals} and {@link AddPrimitivesCommand#hashCode}.
|
|---|
| 18 | */
|
|---|
| 19 | @Test
|
|---|
| 20 | public void equalsContract() {
|
|---|
| 21 | EqualsVerifier.forClass(AddPrimitivesCommand.class).usingGetClass()
|
|---|
| 22 | .withPrefabValues(OsmDataLayer.class,
|
|---|
| 23 | new OsmDataLayer(new DataSet(), "1", null), new OsmDataLayer(new DataSet(), "2", null))
|
|---|
| 24 | .suppress(Warning.NONFINAL_FIELDS)
|
|---|
| 25 | .verify();
|
|---|
| 26 | }
|
|---|
| 27 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.