Changeset 12850 in josm for trunk/test/functional
- Timestamp:
- 2017-09-14T00:50:48+02:00 (7 years ago)
- Location:
- trunk/test/functional/org/openstreetmap/josm/io
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/functional/org/openstreetmap/josm/io/MultiFetchServerObjectReaderTest.java
r12842 r12850 28 28 import org.junit.rules.Timeout; 29 29 import org.openstreetmap.josm.JOSMFixture; 30 import org.openstreetmap.josm.Main;31 30 import org.openstreetmap.josm.data.coor.LatLon; 32 31 import org.openstreetmap.josm.data.osm.Changeset; … … 38 37 import org.openstreetmap.josm.data.osm.Way; 39 38 import org.openstreetmap.josm.gui.progress.NullProgressMonitor; 39 import org.openstreetmap.josm.spi.preferences.Config; 40 40 41 41 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; … … 153 153 JOSMFixture.createFunctionalTestFixture().init(); 154 154 155 Main.pref.put("osm-server.auth-method", "basic");155 Config.getPref().put("osm-server.auth-method", "basic"); 156 156 157 157 // don't use atomic upload, the test API server can't cope with large diff uploads 158 Main.pref.putBoolean("osm-server.atomic-upload", false);158 Config.getPref().putBoolean("osm-server.atomic-upload", false); 159 159 160 160 File dataSetCacheOutputFile = new File(System.getProperty("java.io.tmpdir"), -
trunk/test/functional/org/openstreetmap/josm/io/OsmServerBackreferenceReaderTest.java
r12842 r12850 40 40 import org.openstreetmap.josm.data.projection.Projections; 41 41 import org.openstreetmap.josm.gui.progress.NullProgressMonitor; 42 import org.openstreetmap.josm.spi.preferences.Config; 42 43 import org.openstreetmap.josm.tools.Logging; 43 44 … … 161 162 JOSMFixture.createFunctionalTestFixture().init(); 162 163 163 Main.pref.put("osm-server.auth-method", "basic");164 Config.getPref().put("osm-server.auth-method", "basic"); 164 165 165 166 // don't use atomic upload, the test API server can't cope with large diff uploads 166 167 // 167 Main.pref.putBoolean("osm-server.atomic-upload", false);168 Config.getPref().putBoolean("osm-server.atomic-upload", false); 168 169 Main.setProjection(Projections.getProjectionByCode("EPSG:3857")); // Mercator 169 170 Logging.setLogLevel(Logging.LEVEL_DEBUG); -
trunk/test/functional/org/openstreetmap/josm/io/OsmServerHistoryReaderTest.java
r8622 r12850 7 7 import org.junit.Test; 8 8 import org.openstreetmap.josm.JOSMFixture; 9 import org.openstreetmap.josm.Main;10 9 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; 11 10 import org.openstreetmap.josm.data.osm.history.History; 12 11 import org.openstreetmap.josm.data.osm.history.HistoryDataSet; 13 12 import org.openstreetmap.josm.gui.progress.NullProgressMonitor; 13 import org.openstreetmap.josm.spi.preferences.Config; 14 14 15 15 /** … … 24 24 public static void init() { 25 25 JOSMFixture.createUnitTestFixture().init(); 26 Main.pref.put("osm-server.url", OsmApi.DEFAULT_API_URL);26 Config.getPref().put("osm-server.url", OsmApi.DEFAULT_API_URL); 27 27 } 28 28
Note:
See TracChangeset
for help on using the changeset viewer.