Index: trunk/test/unit/org/openstreetmap/josm/gui/dialogs/MinimapDialogTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/gui/dialogs/MinimapDialogTest.java	(revision 14121)
+++ trunk/test/unit/org/openstreetmap/josm/gui/dialogs/MinimapDialogTest.java	(revision 14122)
@@ -40,4 +40,5 @@
 import org.openstreetmap.josm.gui.layer.OsmDataLayer;
 import org.openstreetmap.josm.gui.util.GuiHelper;
+import org.openstreetmap.josm.spi.preferences.Config;
 import org.openstreetmap.josm.testutils.ImagePatternMatching;
 import org.openstreetmap.josm.testutils.JOSMTestRules;
@@ -225,5 +226,5 @@
     @Test
     public void testSourcePrefObeyed() throws Exception {
-        Main.pref.put("slippy_map_chooser.mapstyle", "Green Tiles");
+        Config.getPref().put("slippy_map_chooser.mapstyle", "Green Tiles");
 
         this.setUpMiniMap();
@@ -252,5 +253,5 @@
     @Test
     public void testSourcePrefInvalid() throws Exception {
-        Main.pref.put("slippy_map_chooser.mapstyle", "Hooloovoo Tiles");
+        Config.getPref().put("slippy_map_chooser.mapstyle", "Hooloovoo Tiles");
 
         this.setUpMiniMap();
@@ -277,5 +278,5 @@
         MainApplication.getLayerManager().addLayer(new TestLayer());
 
-        Main.pref.put("slippy_map_chooser.mapstyle", "White Tiles");
+        Config.getPref().put("slippy_map_chooser.mapstyle", "White Tiles");
         // ensure projection matches JMapViewer's
         ProjectionRegistry.setProjection(Projections.getProjectionByCode("EPSG:3857"));
@@ -415,6 +416,6 @@
     @Test
     public void testShowDownloadedArea() throws Exception {
-        Main.pref.put("slippy_map_chooser.mapstyle", "Green Tiles");
-        Main.pref.putBoolean("slippy_map_chooser.show_downloaded_area", false);
+        Config.getPref().put("slippy_map_chooser.mapstyle", "Green Tiles");
+        Config.getPref().putBoolean("slippy_map_chooser.show_downloaded_area", false);
 
         DataSet dataSet = new DataSet();
@@ -574,6 +575,6 @@
     @Test
     public void testShowDownloadedAreaLayerSwitching() throws Exception {
-        Main.pref.put("slippy_map_chooser.mapstyle", "Green Tiles");
-        Main.pref.putBoolean("slippy_map_chooser.show_downloaded_area", true);
+        Config.getPref().put("slippy_map_chooser.mapstyle", "Green Tiles");
+        Config.getPref().putBoolean("slippy_map_chooser.show_downloaded_area", true);
 
         DataSet dataSetA = new DataSet();
