Changeset 8914 in josm for trunk/test
- Timestamp:
- 2015-10-19T23:49:11+02:00 (9 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/command/conflict
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/command/conflict/ConflictAddCommandTest.java
r8910 r8914 3 3 4 4 import static org.junit.Assert.assertFalse; 5 import static org.junit.Assert.assertNotNull; 5 6 import static org.junit.Assert.assertTrue; 6 7 8 import org.junit.BeforeClass; 7 9 import org.junit.Test; 10 import org.openstreetmap.josm.JOSMFixture; 8 11 import org.openstreetmap.josm.data.conflict.Conflict; 9 12 import org.openstreetmap.josm.data.osm.DataSet; 13 import org.openstreetmap.josm.data.osm.Node; 10 14 import org.openstreetmap.josm.data.osm.OsmPrimitive; 11 15 import org.openstreetmap.josm.gui.layer.OsmDataLayer; … … 15 19 */ 16 20 public class ConflictAddCommandTest { 21 22 /** 23 * Setup test. 24 */ 25 @BeforeClass 26 public static void setUpBeforeClass() { 27 JOSMFixture.createUnitTestFixture().init(); 28 } 17 29 18 30 /** … … 31 43 assertTrue(layer.getConflicts().isEmpty()); 32 44 } 45 46 /** 47 * Unit test of {@code ConflictAddCommand#getDescriptionIcon} method. 48 */ 49 @Test 50 public void testGetDescriptionIcon() { 51 OsmDataLayer layer = new OsmDataLayer(new DataSet(), null, null); 52 Conflict<Node> conflict = new Conflict<>(new Node(), new Node()); 53 assertNotNull(new ConflictAddCommand(layer, conflict).getDescriptionIcon()); 54 } 33 55 }
Note:
See TracChangeset
for help on using the changeset viewer.