Ignore:
Timestamp:
2018-08-22T22:55:16+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #16680 - Unit tests: fix for windows (patch by ris)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/testutils/PluginServer.java

    r14153 r14179  
    2626import com.github.tomakehurst.wiremock.junit.WireMockRule;
    2727import com.google.common.collect.ImmutableList;
     28import com.google.common.collect.Streams;
    2829
    2930public class PluginServer {
     
    118119
    119120                if (jarPath.startsWith(filesRootPath)) {
    120                     return filesRootPath.relativize(jarPath).toString();
     121                    // would just use .toString() but need to force use of *forward slash* path separators on all platforms
     122                    return Streams.stream(filesRootPath.relativize(jarPath)).map(p -> p.toString()).collect(Collectors.joining("/"));
    121123                }
    122124            }
Note: See TracChangeset for help on using the changeset viewer.