diff --git a/test/unit/org/openstreetmap/josm/data/imagery/vectortile/mapbox/style/MapboxVectorStyleTest.java b/test/unit/org/openstreetmap/josm/data/imagery/vectortile/mapbox/style/MapboxVectorStyleTest.java
index 461feffa0..28274ea69 100644
|
a
|
b
|
public class MapboxVectorStyleTest {
|
| 161 | 161 | // Ensure that we don't have images saved in the ImageProvider cache |
| 162 | 162 | ImageProvider.clearCache(); |
| 163 | 163 | int hiDpiScalar = hiDpi ? 2 : 1; |
| 164 | | String spritePath = new File(this.spritesDirectory, "sprite").getPath(); |
| | 164 | String spritePath = this.spritesDirectory + "/sprite"; |
| 165 | 165 | MapboxVectorStyle style = new MapboxVectorStyle(getJson(JsonObject.class, |
| 166 | 166 | MessageFormat.format(BASE_STYLE, "sprite_test", "\"sprite\":\"file:/" + spritePath + "\""))); |
| 167 | 167 | assertEquals("file:/" + spritePath, style.getSpriteUrl()); |
| … |
… |
public class MapboxVectorStyleTest {
|
| 237 | 237 | |
| 238 | 238 | @Test |
| 239 | 239 | void testMapillaryStyle() { |
| 240 | | final String file = Paths.get("file:", TestUtils.getTestDataRoot(), "mapillary.json").toString(); |
| | 240 | final String file = "file:/" + TestUtils.getTestDataRoot() + "/mapillary.json"; |
| 241 | 241 | final MapboxVectorStyle style = MapboxVectorStyle.getMapboxVectorStyle(file); |
| 242 | 242 | assertNotNull(style); |
| 243 | 243 | // There are three "sources" in the mapillary.json file |