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