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