Ignore:
Timestamp:
2021-07-08T01:48:46+02:00 (3 years ago)
Author:
Don-vip
Message:

see #17177 - fix two unit tests broken on Windows (patch by taylor.smock)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/imagery/vectortile/mapbox/style/MapboxVectorStyleTest.java

    r17862 r17960  
    162162        ImageProvider.clearCache();
    163163        int hiDpiScalar = hiDpi ? 2 : 1;
    164         String spritePath = new File(this.spritesDirectory, "sprite").getPath();
     164        String spritePath = this.spritesDirectory + "/sprite";
    165165        MapboxVectorStyle style = new MapboxVectorStyle(getJson(JsonObject.class,
    166166          MessageFormat.format(BASE_STYLE, "sprite_test", "\"sprite\":\"file:/" + spritePath + "\"")));
     
    238238    @Test
    239239    void testMapillaryStyle() {
    240         final String file = Paths.get("file:", TestUtils.getTestDataRoot(), "mapillary.json").toString();
     240        final String file = "file:/" + TestUtils.getTestDataRoot() + "/mapillary.json";
    241241        final MapboxVectorStyle style = MapboxVectorStyle.getMapboxVectorStyle(file);
    242242        assertNotNull(style);
Note: See TracChangeset for help on using the changeset viewer.