Changeset 9671 in josm for trunk/test/unit/org/openstreetmap/josm/command/conflict/ConflictAddCommandTest.java
- Timestamp:
- 2016-01-29T19:36:59+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/command/conflict/ConflictAddCommandTest.java
r9666 r9671 5 5 import static org.junit.Assert.assertNotNull; 6 6 import static org.junit.Assert.assertTrue; 7 import nl.jqno.equalsverifier.EqualsVerifier;8 import nl.jqno.equalsverifier.Warning;9 7 8 import org.junit.AfterClass; 10 9 import org.junit.BeforeClass; 11 10 import org.junit.Test; … … 18 17 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 19 18 19 import nl.jqno.equalsverifier.EqualsVerifier; 20 import nl.jqno.equalsverifier.Warning; 21 20 22 /** 21 23 * Unit tests of {@link ConflictAddCommand} class. 22 24 */ 23 25 public class ConflictAddCommandTest { 26 27 private static OsmDataLayer layer; 24 28 25 29 /** … … 29 33 public static void setUpBeforeClass() { 30 34 JOSMFixture.createUnitTestFixture().init(true); 31 Main.map.mapView.addLayer(new OsmDataLayer(new DataSet(), null, null)); 35 layer = new OsmDataLayer(new DataSet(), null, null); 36 Main.main.addLayer(layer); 37 } 38 39 /** 40 * Cleanup test resources. 41 */ 42 @AfterClass 43 public static void tearDownAfterClass() { 44 Main.main.removeLayer(layer); 32 45 } 33 46
Note:
See TracChangeset
for help on using the changeset viewer.