Changeset 14513 in josm for trunk


Ignore:
Timestamp:
2018-12-05T20:40:56+01:00 (7 months ago)
Author:
Don-vip
Message:

see #16073 - rework/simplify max zoom test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreferenceTestIT.java

    r14512 r14513  
    3636import org.openstreetmap.josm.tools.HttpClient.Response;
    3737import org.openstreetmap.josm.tools.Logging;
     38import org.openstreetmap.josm.tools.Utils;
    3839
    3940import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
     
    122123            AbstractTileSource tileSource = getTileSource(info);
    123124            checkTileUrl(info, tileSource, center, info.getMinZoom());
    124             checkTileUrl(info, tileSource, center, info.getMaxZoom());
     125            // checking max zoom for real is complex, see https://josm.openstreetmap.de/ticket/16073#comment:27
     126            checkTileUrl(info, tileSource, center, Utils.clamp(info.getMinZoom() + 1, 12, info.getMaxZoom()));
    125127        } catch (IOException | WMTSGetCapabilitiesException | IllegalArgumentException e) {
    126128            addError(info, e.toString());
Note: See TracChangeset for help on using the changeset viewer.