source: josm/trunk/test/unit/org/openstreetmap/josm/command/ScaleCommandTest.java@ 9666

Last change on this file since 9666 was 9666, checked in by stoecker, 8 years ago

see #12410 fix style of tests

File size: 839 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.command;
3
4import org.junit.Test;
5import org.openstreetmap.josm.data.osm.DataSet;
6import org.openstreetmap.josm.gui.layer.OsmDataLayer;
7
8import nl.jqno.equalsverifier.EqualsVerifier;
9import nl.jqno.equalsverifier.Warning;
10
11/**
12 * Unit tests of {@link ScaleCommand} class.
13 */
14public class ScaleCommandTest {
15
16 /**
17 * Unit test of methods {@link ScaleCommand#equals} and {@link ScaleCommand#hashCode}.
18 */
19 @Test
20 public void equalsContract() {
21 EqualsVerifier.forClass(ScaleCommand.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.