Changeset 17960 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2021-07-08T01:48:46+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/imagery/vectortile/mapbox/style/MapboxVectorStyleTest.java
r17862 r17960 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 + "\""))); … … 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);
Note:
See TracChangeset
for help on using the changeset viewer.