source: josm/trunk/test/unit/org/openstreetmap/josm/command/AddPrimitivesCommandTest.java@ 9504

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

new unit tests

File size: 906 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 AddPrimitivesCommand} class.
13 */
14public 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.