Changeset 7884 in josm for trunk/test


Ignore:
Timestamp:
2014-12-25T16:31:17+01:00 (5 years ago)
Author:
Don-vip
Message:

fix #9844, fix #9992, fix #10133 - fix relation checker tests against member expressions (modified patch by wiktorn)

File:
1 edited

Legend:

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

    r7526 r7884  
    5555        def errors = testRelation(r)
    5656        assert errors.size() == 1
    57         assert errors.get(0).getDescription() == "Role outer2 unknown"
     57        assert errors.get(0).getDescription() == "Role outer2 unknown in templates outer/inner"
    5858    }
    5959
     
    7676        def errors = testRelation(r)
    7777        assert errors.size() == 1
    78         assert errors.get(0).getDescription() == "Member for role via of wrong type"
     78        assert errors.get(0).getDescription() == "Role member type relation does not match accepted list of node/way in template Turn Restriction"
    7979    }
    8080
     
    100100        def errors = testRelation(r)
    101101        assert errors.size() == 1
    102         assert errors.get(0).getDescription() == "Empty role found"
     102        assert errors.get(0).getDescription().startsWith("Empty role type found when expecting one of")
    103103    }
    104104
     
    109109        def errors = testRelation(r)
    110110        assert errors.size() == 1
    111         assert errors.get(0).getDescription() == "Member for role '<empty>' does not match 'power'"
     111        assert errors.get(0).getDescription() == "Role member does not match expression power in template Power Route"
    112112    }
    113113}
Note: See TracChangeset for help on using the changeset viewer.