Changeset 14122 in josm for trunk/test/unit
- Timestamp:
- 2018-08-11T18:18:58+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/dialogs/MinimapDialogTest.java
r14120 r14122 40 40 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 41 41 import org.openstreetmap.josm.gui.util.GuiHelper; 42 import org.openstreetmap.josm.spi.preferences.Config; 42 43 import org.openstreetmap.josm.testutils.ImagePatternMatching; 43 44 import org.openstreetmap.josm.testutils.JOSMTestRules; … … 225 226 @Test 226 227 public void testSourcePrefObeyed() throws Exception { 227 Main.pref.put("slippy_map_chooser.mapstyle", "Green Tiles");228 Config.getPref().put("slippy_map_chooser.mapstyle", "Green Tiles"); 228 229 229 230 this.setUpMiniMap(); … … 252 253 @Test 253 254 public void testSourcePrefInvalid() throws Exception { 254 Main.pref.put("slippy_map_chooser.mapstyle", "Hooloovoo Tiles");255 Config.getPref().put("slippy_map_chooser.mapstyle", "Hooloovoo Tiles"); 255 256 256 257 this.setUpMiniMap(); … … 277 278 MainApplication.getLayerManager().addLayer(new TestLayer()); 278 279 279 Main.pref.put("slippy_map_chooser.mapstyle", "White Tiles");280 Config.getPref().put("slippy_map_chooser.mapstyle", "White Tiles"); 280 281 // ensure projection matches JMapViewer's 281 282 ProjectionRegistry.setProjection(Projections.getProjectionByCode("EPSG:3857")); … … 415 416 @Test 416 417 public void testShowDownloadedArea() throws Exception { 417 Main.pref.put("slippy_map_chooser.mapstyle", "Green Tiles");418 Main.pref.putBoolean("slippy_map_chooser.show_downloaded_area", false);418 Config.getPref().put("slippy_map_chooser.mapstyle", "Green Tiles"); 419 Config.getPref().putBoolean("slippy_map_chooser.show_downloaded_area", false); 419 420 420 421 DataSet dataSet = new DataSet(); … … 574 575 @Test 575 576 public void testShowDownloadedAreaLayerSwitching() throws Exception { 576 Main.pref.put("slippy_map_chooser.mapstyle", "Green Tiles");577 Main.pref.putBoolean("slippy_map_chooser.show_downloaded_area", true);577 Config.getPref().put("slippy_map_chooser.mapstyle", "Green Tiles"); 578 Config.getPref().putBoolean("slippy_map_chooser.show_downloaded_area", true); 578 579 579 580 DataSet dataSetA = new DataSet();
Note:
See TracChangeset
for help on using the changeset viewer.