Ignore:
Timestamp:
2017-09-14T00:22:37+02:00 (8 years ago)
Author:
bastiK
Message:

see #15229 - use Config in tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java

    r12848 r12849  
    310310            // No pref init -> that would only create the preferences file.
    311311            // We force the use of a wrong API server, just in case anyone attempts an upload
    312             Main.pref.put("osm-server.url", "http://invalid");
     312            Config.getPref().put("osm-server.url", "http://invalid");
    313313        }
    314314
     
    336336        // Set API
    337337        if (useAPI == APIType.DEV) {
    338             Main.pref.put("osm-server.url", "http://api06.dev.openstreetmap.org/api");
     338            Config.getPref().put("osm-server.url", "http://api06.dev.openstreetmap.org/api");
    339339        } else if (useAPI == APIType.FAKE) {
    340340            FakeOsmApi api = FakeOsmApi.getInstance();
    341             Main.pref.put("osm-server.url", api.getServerUrl());
     341            Config.getPref().put("osm-server.url", api.getServerUrl());
    342342        }
    343343
Note: See TracChangeset for help on using the changeset viewer.