source: josm/trunk/test/unit/org/openstreetmap/josm/command/TransformNodesCommandTest.java@ 9761

Last change on this file since 9761 was 9761, checked in by Don-vip, 8 years ago

fix #12508 - add missing fixtures for command unit tests

File size: 1.1 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.command;
3
4import org.junit.BeforeClass;
5import org.junit.Test;
6import org.openstreetmap.josm.JOSMFixture;
7import org.openstreetmap.josm.data.osm.DataSet;
8import org.openstreetmap.josm.gui.layer.OsmDataLayer;
9
10import nl.jqno.equalsverifier.EqualsVerifier;
11import nl.jqno.equalsverifier.Warning;
12
13/**
14 * Unit tests of {@link TransformNodesCommand} class.
15 */
16public class TransformNodesCommandTest {
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 TransformNodesCommand#equals} and {@link TransformNodesCommand#hashCode}.
28 */
29 @Test
30 public void equalsContract() {
31 EqualsVerifier.forClass(TransformNodesCommand.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.