Changes between Initial Version and Version 1 of Ticket #15508


Ignore:
Timestamp:
2017-11-01T02:03:57+01:00 (6 years ago)
Author:
ris
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15508

    • Property Type defectenhancement
  • Ticket #15508 – Description

    initial v1  
    11This isn't quite finished (missing some commenting and doc strings for some public methods etc) but I felt I should share a bit of what I'm up to.
    22
    3 The attached patches add a subclass of `WireMockRule` which will provide a mock tile server for use by tests. It also has the ability to add these as tile sources to the `ImageryLayerInfo` list.
     3The attached patches add a subclass of `WireMockRule` which when applied to a junit test provide a (limited) mock tile server. It also has the ability to add these as tile sources to the `ImageryLayerInfo` list.
    44
    55This rule can either be used on its own on a test if access from the `ImageryLayerInfo` list isn't needed or can be added to a `JOSMTestRules` using a new `.fakeImagery()` method. In the latter case, the rule will automagically replace the `ImageryLayerInfo` list with its list of sources at the appropriate time in the initialization routine (and also perform a small hack to remove `SlippyMapBBoxChooser`'s helpful-but-also-untestable default fallback osm tile source).