Changeset 12899 in josm for trunk


Ignore:
Timestamp:
2017-09-26T00:12:51+02:00 (7 years ago)
Author:
Don-vip
Message:

fix unit test for real (depends on OSM API dev data. Not ideal but these coordinates should last longer)

File:
1 edited

Legend:

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

    r12898 r12899  
    253253    public void testPostConstructorProcessCmdLineBounds() {
    254254        doTestPostConstructorProcessCmdLine(
    255                 "0.01,0.01,0.05,0.05",
     255                "-47.20,-126.75,-47.10,-126.65",
    256256                "51.35,-0.4,51.60,0.2", true);
    257257    }
     
    259259    /**
    260260     * Unit test of {@link MainApplication#postConstructorProcessCmdLine} - nominal case with http/https URLs.
    261      * This test assumes the DEV API contains nodes around 0,0 and GPX tracks around London
     261     * This test assumes the DEV API contains nodes around -47.15, -126.7 (R'lyeh) and GPX tracks around London
    262262     */
    263263    @Test
    264264    public void testPostConstructorProcessCmdLineHttpUrl() {
    265265        doTestPostConstructorProcessCmdLine(
    266                 "http://api06.dev.openstreetmap.org/api/0.6/map?bbox=0.01,0.01,0.05,0.05",
     266                "http://api06.dev.openstreetmap.org/api/0.6/map?bbox=-126.75,-47.20,-126.65,-47.10",
    267267                "https://master.apis.dev.openstreetmap.org/api/0.6/trackpoints?bbox=-0.4,51.35,0.2,51.6&page=0", true);
    268268    }
Note: See TracChangeset for help on using the changeset viewer.