Changeset 17945 in josm for trunk/test


Ignore:
Timestamp:
2021-07-03T00:20:30+02:00 (3 years ago)
Author:
Klumbumbus
Message:

see #21048 - Fix unit test

File:
1 edited

Legend:

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

    r17275 r17945  
    149149        r.addMember(new RelationMember("outline", new Way()));
    150150        r.addMember(new RelationMember("part", new Way()));
    151         r.addMember(new RelationMember("level_-12", new Relation()));
    152         r.addMember(new RelationMember("level_0", new Relation()));
    153         r.addMember(new RelationMember("level_12", new Relation()));
    154         r.addMember(new RelationMember("level_x", new Relation())); // fails
    155 
    156         List<TestError> errors = testRelation(r);
    157         assertEquals(1, errors.size());
    158         assertEquals("Role 'level_x' is not among expected values 'outline/part/ridge/edge/entrance/level_-?\\d+'",
     151        r.addMember(new RelationMember("level_-12", new Relation())); // fails (old tagging schema, #21048)
     152
     153        List<TestError> errors = testRelation(r);
     154        assertEquals(1, errors.size());
     155        assertEquals("Role 'level_x' is not among expected values 'outline/part/ridge/edge'",
    159156                errors.get(0).getDescription());
    160157    }
Note: See TracChangeset for help on using the changeset viewer.