Changes between Initial Version and Version 1 of Ticket #15508
- Timestamp:
- 2017-11-01T02:03:57+01:00 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #15508
- Property Type defect → enhancement
-
Ticket #15508 – Description
initial v1 1 1 This 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. 2 2 3 The attached patches add a subclass of `WireMockRule` which w illprovide amock tile server for use by tests. It also has the ability to add these as tile sources to the `ImageryLayerInfo` list.3 The 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. 4 4 5 5 This 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).