Ignore:
Timestamp:
2016-06-21T00:47:41+02:00 (8 years ago)
Author:
donvip
Message:

fix some unit tests

File:
1 edited

Legend:

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

    r30558 r32351  
    99import java.nio.file.Paths;
    1010
    11 import junit.framework.TestCase;
    12 
    13 import org.openstreetmap.josm.JOSMFixture;
     11import org.junit.Rule;
    1412import org.openstreetmap.josm.TestUtils;
    1513import org.openstreetmap.josm.data.coor.LatLon;
    1614import org.openstreetmap.josm.plugins.elevation.HgtReader;
     15import org.openstreetmap.josm.testutils.JOSMTestRules;
     16
     17import junit.framework.TestCase;
    1718
    1819public class HgtReaderTest extends TestCase {
     20
     21    @Rule
     22    public JOSMTestRules rules = new JOSMTestRules().preferences();
    1923
    2024    /**
     
    2428    @Override
    2529    public void setUp() throws IOException {
    26         JOSMFixture.createUnitTestFixture().init();
    2730        // Install SRTM files to plugin directory
    2831        try (DirectoryStream<Path> stream = Files.newDirectoryStream(Paths.get(TestUtils.getTestDataRoot()), "*.hgt")) {
Note: See TracChangeset for help on using the changeset viewer.