Changeset 12002 in josm for trunk/test
- Timestamp:
- 2017-04-25T19:33:21+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/RelationCheckerTest.java
r11479 r12002 139 139 140 140 @Test 141 public void testBuildingMemberExpression() { 142 Relation r = createRelation("type=building"); 143 r.addMember(new RelationMember("outline", new Way())); 144 r.addMember(new RelationMember("part", new Way())); 145 r.addMember(new RelationMember("level_-12", new Relation())); 146 r.addMember(new RelationMember("level_0", new Relation())); 147 r.addMember(new RelationMember("level_12", new Relation())); 148 r.addMember(new RelationMember("level_x", new Relation())); // fails 149 150 List<TestError> errors = testRelation(r); 151 assertEquals(1, errors.size()); 152 assertEquals("Role 'level_x' unknown in templates 'outline/part/ridge/edge/entrance/level_-?\\d+'", errors.get(0).getDescription()); 153 } 154 155 @Test 141 156 public void testRouteMemberExpression() { 142 157 Relation r = createRelation("type=route route=tram public_transport:version=2");
Note:
See TracChangeset
for help on using the changeset viewer.