Ignore:
Timestamp:
2017-10-30T17:50:22+01:00 (7 years ago)
Author:
bastik
Message:

see #josm15451 - fix test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/ElevationProfile/test/unit/org/openstreetmap/josm/plugins/elevation/tests/HgtReaderTest.java

    r32893 r33744  
    1818import org.openstreetmap.josm.data.coor.LatLon;
    1919import org.openstreetmap.josm.plugins.elevation.HgtReader;
     20import org.openstreetmap.josm.spi.preferences.Config;
    2021import org.openstreetmap.josm.testutils.JOSMTestRules;
    2122
     
    3334        // Install SRTM files to plugin directory
    3435        try (DirectoryStream<Path> stream = Files.newDirectoryStream(Paths.get(TestUtils.getTestDataRoot()), "*.hgt")) {
    35             Path dir = Paths.get(System.getProperty("josm.home")).resolve("elevation");
     36            Path dir = Config.getDirs().getUserDataDirectory(true).toPath().resolve("elevation");
     37
    3638            if (!Files.exists(dir)) {
    3739                Files.createDirectory(dir);
Note: See TracChangeset for help on using the changeset viewer.