Changeset 12564 in josm for trunk/test/unit/org/openstreetmap/josm/gui/MapScalerTest.java
- Timestamp:
- 2017-08-03T23:24:56+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/MapScalerTest.java
r9954 r12564 8 8 import java.awt.Color; 9 9 10 import org.junit. BeforeClass;10 import org.junit.Rule; 11 11 import org.junit.Test; 12 import org.openstreetmap.josm.JOSMFixture;13 12 import org.openstreetmap.josm.Main; 14 13 import org.openstreetmap.josm.TestUtils; 14 import org.openstreetmap.josm.data.osm.DataSet; 15 15 import org.openstreetmap.josm.gui.MapScaler.AccessibleMapScaler; 16 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 17 import org.openstreetmap.josm.testutils.JOSMTestRules; 18 19 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 16 20 17 21 /** … … 23 27 * Setup tests 24 28 */ 25 @BeforeClass 26 public static void setUpBeforeClass() { 27 JOSMFixture.createUnitTestFixture().init(true); 28 } 29 @Rule 30 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 31 public JOSMTestRules test = new JOSMTestRules().mainMenu().platform().projection(); 29 32 30 33 /** … … 33 36 @Test 34 37 public void testMapScaler() { 38 Main.getLayerManager().addLayer(new OsmDataLayer(new DataSet(), "", null)); 35 39 assertEquals(Color.WHITE, MapScaler.getColor()); 36 40 MapScaler ms = new MapScaler(Main.map.mapView);
Note:
See TracChangeset
for help on using the changeset viewer.