Changeset 17413 in josm for trunk/test


Ignore:
Timestamp:
2020-12-17T09:43:16+01:00 (5 months ago)
Author:
GerdP
Message:

see #20019: Warn about direction=forward/backward on invalid nodes.

  • revert changes in DirectionNodes.java from 17412
  • improve test coverage (nodes with positive ids)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/validation/tests/DirectionNodesTest.java

    r17411 r17413  
    22package org.openstreetmap.josm.data.validation.tests;
    33
    4 import java.util.stream.Collectors;
    5 
    64import org.junit.jupiter.api.Test;
    75import org.junit.jupiter.api.extension.RegisterExtension;
    8 import org.openstreetmap.josm.data.osm.OsmPrimitive;
    96import org.openstreetmap.josm.testutils.JOSMTestRules;
    107
     
    2926     */
    3027    @Test
    31     void testMultipolygonFile() throws Exception {
     28    void testDirectionsNodesTestFile() throws Exception {
    3229        final DirectionNodes test = new DirectionNodes();
    33         ValidatorTestUtils.testSampleFile("nodist/data/direction-nodes.osm",
    34                 ds -> ds.getNodes().stream().filter(OsmPrimitive::hasKeys).collect(Collectors.toList()),
    35         null, test);
    36 
     30        ValidatorTestUtils.testSampleFile("nodist/data/direction-nodes.osm", ds -> ds.getNodes(), null, test);
    3731    }
    38 
    3932}
Note: See TracChangeset for help on using the changeset viewer.