Legend:
- Unmodified
- Added
- Removed
-
trunk/nodist/data/direction-nodes.osm
r17412 r17413 1 1 <?xml version='1.0' encoding='UTF-8'?> 2 2 <osm version='0.6' upload='never' generator='JOSM'> 3 <bounds minlat='53.2707779' minlon='10.4797161' maxlat='53.2820304' maxlon='10.5029633' origin='JOSM' /> 3 4 <node id='-144644' action='modify' lat='53.27687963931' lon='10.48026196529' /> 4 5 <node id='-144645' action='modify' lat='53.27753227122' lon='10.48343889291' /> … … 255 256 <tag k='railway:signal:minor:form' v='sign' /> 256 257 <tag k='railway:signal:position' v='in_track' /> 258 </node> 259 <node id='111' version='1' lat='53.2769797' lon='10.5045821'> 260 <tag k='direction' v='forward' /> 261 <tag k='josm_error_codes' v='none' /> 262 <tag k='name' v='Oldtown' /> 263 <tag k='traffic_sign' v='city_limit' /> 264 </node> 265 <node id='112' version='1' lat='53.2752042' lon='10.5009577'> 266 <tag k='direction' v='forward' /> 267 <tag k='josm_error_codes' v='4002' /> 268 <tag k='name' v='Oldtown 2' /> 269 <tag k='traffic_sign' v='city_limit' /> 257 270 </node> 258 271 <way id='-102854' action='modify'> -
trunk/src/org/openstreetmap/josm/data/validation/tests/DirectionNodes.java
r17412 r17413 92 92 marktr("Node with {0} on end of way"), tag); 93 93 } 94 } else { // ways.size() > 194 } else if (ways.size() > 1) { 95 95 builder = TestError.builder(this, Severity.OTHER, MULTIPLE_WAYS_CODE).message(DISPUTED_USE_MSG, 96 96 marktr("Node with {0} on a connection of multiple ways"), tag); -
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/DirectionNodesTest.java
r17411 r17413 2 2 package org.openstreetmap.josm.data.validation.tests; 3 3 4 import java.util.stream.Collectors;5 6 4 import org.junit.jupiter.api.Test; 7 5 import org.junit.jupiter.api.extension.RegisterExtension; 8 import org.openstreetmap.josm.data.osm.OsmPrimitive;9 6 import org.openstreetmap.josm.testutils.JOSMTestRules; 10 7 … … 29 26 */ 30 27 @Test 31 void test MultipolygonFile() throws Exception {28 void testDirectionsNodesTestFile() throws Exception { 32 29 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); 37 31 } 38 39 32 }
Note:
See TracChangeset
for help on using the changeset viewer.