Changeset 7497 in josm for trunk/test/unit/org


Ignore:
Timestamp:
2014-09-05T01:50:02+02:00 (10 years ago)
Author:
Don-vip
Message:

fix #10480 - False positive with lanes validation if source:lanes is present + fix headless exception seen in unit tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/validation/tests/LanesTest.groovy

    r7357 r7497  
    11package org.openstreetmap.josm.data.validation.tests
    22
     3import org.openstreetmap.josm.JOSMFixture
    34import org.openstreetmap.josm.data.osm.OsmUtils
    45
     
    910    @Override
    1011    void setUp() {
     12        JOSMFixture.createUnitTestFixture().init()
    1113        lanes.initialize()
    1214        lanes.startTest(null)
     
    6062        assert lanes.errors.isEmpty()
    6163    }
     64
     65    void test9() {
     66        lanes.check(OsmUtils.createPrimitive("way highway=secondary lanes=2 source:lanes=survey"))
     67        assert lanes.errors.isEmpty()
     68    }
    6269}
Note: See TracChangeset for help on using the changeset viewer.