Changeset 17945 in josm for trunk/test
- Timestamp:
- 2021-07-03T00:20:30+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/RelationCheckerTest.java
r17275 r17945 149 149 r.addMember(new RelationMember("outline", new Way())); 150 150 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'", 159 156 errors.get(0).getDescription()); 160 157 }
Note:
See TracChangeset
for help on using the changeset viewer.