Changeset 13812 in josm for trunk/test


Ignore:
Timestamp:
2018-05-21T21:55:08+02:00 (14 months ago)
Author:
Don-vip
Message:

https access to OSM Dev API

Location:
trunk/test/unit/org/openstreetmap/josm
Files:
6 edited

Legend:

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

    r13174 r13812  
    112112        String url = Config.getPref().get("osm-server.url");
    113113        if (url == null || url.isEmpty() || isProductionApiUrl(url)) {
    114             Config.getPref().put("osm-server.url", "http://api06.dev.openstreetmap.org/api");
     114            Config.getPref().put("osm-server.url", "https://api06.dev.openstreetmap.org/api");
    115115        }
    116116        I18n.set(Config.getPref().get("language", "en"));
  • trunk/test/unit/org/openstreetmap/josm/MainTest.java

    r13173 r13812  
    4646    @Test
    4747    public void testGetBaseUserUrl() {
    48         assertEquals("http://api06.dev.openstreetmap.org/user", Main.getBaseUserUrl());
     48        assertEquals("https://api06.dev.openstreetmap.org/user", Main.getBaseUserUrl());
    4949    }
    5050
  • trunk/test/unit/org/openstreetmap/josm/data/oauth/OAuthParametersTest.java

    r13173 r13812  
    3737        assertNotNull(def);
    3838        assertEquals(def, OAuthParameters.createDefault(OsmApi.DEFAULT_API_URL));
    39         OAuthParameters dev = OAuthParameters.createDefault("http://api06.dev.openstreetmap.org/api");
     39        OAuthParameters dev = OAuthParameters.createDefault("https://api06.dev.openstreetmap.org/api");
    4040        assertNotNull(dev);
    4141        assertNotEquals(def, dev);
  • trunk/test/unit/org/openstreetmap/josm/gui/MainApplicationTest.java

    r13173 r13812  
    254254    public void testPostConstructorProcessCmdLineHttpUrl() {
    255255        doTestPostConstructorProcessCmdLine(
    256                 "http://api06.dev.openstreetmap.org/api/0.6/map?bbox=-126.75,-47.20,-126.65,-47.10",
     256                "https://api06.dev.openstreetmap.org/api/0.6/map?bbox=-126.75,-47.20,-126.65,-47.10",
    257257                "https://master.apis.dev.openstreetmap.org/api/0.6/trackpoints?bbox=-0.4,51.35,0.2,51.6&page=0", true);
    258258    }
  • trunk/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java

    r13322 r13812  
    415415        // Set API
    416416        if (useAPI == APIType.DEV) {
    417             Config.getPref().put("osm-server.url", "http://api06.dev.openstreetmap.org/api");
     417            Config.getPref().put("osm-server.url", "https://api06.dev.openstreetmap.org/api");
    418418        } else if (useAPI == APIType.FAKE) {
    419419            FakeOsmApi api = FakeOsmApi.getInstance();
  • trunk/test/unit/org/openstreetmap/josm/tools/ExceptionUtilTest.java

    r10487 r13812  
    247247    @Test
    248248    public void testExplainMissingOAuthAccessTokenException() {
    249         assertEquals("<html>Failed to authenticate at the OSM server 'http://api06.dev.openstreetmap.org/api'.<br>"+
     249        assertEquals("<html>Failed to authenticate at the OSM server 'https://api06.dev.openstreetmap.org/api'.<br>"+
    250250                "You are using OAuth to authenticate but currently there is no<br>OAuth Access Token configured.<br>"+
    251251                "Please open the Preferences Dialog and generate or enter an Access Token.</html>",
Note: See TracChangeset for help on using the changeset viewer.