Changeset 10739 in josm


Ignore:
Timestamp:
2016-08-05T20:30:48+02:00 (8 years ago)
Author:
Don-vip
Message:

wms capabilities fetching: remove duplicate log, add unit test robustness

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/imagery/WMSImagery.java

    r10717 r10739  
    209209        }
    210210
    211         Main.info("GET " + getCapabilitiesUrl);
    212211        final String incomingData = HttpClient.create(getCapabilitiesUrl).connect().fetchContent();
    213212        Main.debug("Server response to Capabilities request:");
  • trunk/test/unit/org/openstreetmap/josm/actions/AddImageryLayerActionTest.java

    r10705 r10739  
    2424    /**
    2525     * We need prefs for this. We need platform for actions and the OSM API for checking blacklist.
     26     * The timeout is set to default httpclient read timeout + connect timeout + a small delay to ignore
     27     * common but harmless network issues.
    2628     */
    2729    @Rule
    2830    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    29     public JOSMTestRules test = new JOSMTestRules().preferences().platform().fakeAPI().timeout(15000);
     31    public JOSMTestRules test = new JOSMTestRules().preferences().platform().fakeAPI().timeout(45500);
    3032
    3133    /**
Note: See TracChangeset for help on using the changeset viewer.