Changes between Version 2 and Version 3 of Ticket #15508
- Timestamp:
- 2017-11-01T02:05:22+01:00 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #15508 – Description
v2 v3 3 3 The attached patches add a subclass of `WireMockRule` which when applied to a junit test will provide a (limited) mock tile server. It also has the ability to add these as tile sources to the `ImageryLayerInfo` list. 4 4 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). 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 hardcoded fallback osm tile source). 6 6 7 7 Or if `.fakeImagery()` call is added without any arguments it will simply add a default selection of useful tile sources.