Changeset 17212 in josm


Ignore:
Timestamp:
2020-10-15T23:11:38+02:00 (10 days ago)
Author:
simon04
Message:

Fix CapabilitiesTest

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/io/CapabilitiesTest.java

    r17194 r17212  
    66
    77import java.io.InputStream;
     8import java.nio.file.Files;
     9import java.nio.file.Path;
     10import java.nio.file.Paths;
    811import java.util.Collections;
    912
    1013import org.junit.Test;
     14import org.openstreetmap.josm.TestUtils;
    1115import org.xml.sax.InputSource;
    1216
     
    2327    @Test
    2428    public void testCapabilities() throws Exception {
     29        final Path path = Paths.get(TestUtils.getTestDataRoot(), "__files/api/0.6/capabilities");
    2530        final Capabilities capabilities;
    26         try (InputStream inputStream = getClass().getClassLoader().getResourceAsStream("__files/api/0.6/capabilities")) {
     31        try (InputStream inputStream = Files.newInputStream(path)) {
    2732            capabilities = Capabilities.CapabilitiesParser.parse(new InputSource(inputStream));
    2833        }
Note: See TracChangeset for help on using the changeset viewer.