Changeset 11475 in josm for trunk/test/unit/org
- Timestamp:
- 2017-01-17T13:50:51+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/RelationCheckerTest.java
r11468 r11475 98 98 List<TestError> errors = testRelation(r); 99 99 assertEquals(1, errors.size()); 100 assertEquals(" Role member type 'relation' does not match accepted list of'node/way' in template Turn Restriction",100 assertEquals("Type 'relation' of relation member with role 'via' does not match accepted types 'node/way' in template Turn Restriction", 101 101 errors.get(0).getDescription()); 102 102 } … … 135 135 List<TestError> errors = testRelation(r); 136 136 assertEquals(1, errors.size()); 137 assertEquals("Role member does not match expression 'power' in template Power Route", errors.get(0).getDescription());137 assertEquals("Role of relation member does not match expression 'power' in template Power Route", errors.get(0).getDescription()); 138 138 } 139 139 … … 148 148 r.addMember(new RelationMember("", createPrimitive("way no-rail-way=yes"))); 149 149 assertEquals(1, testRelation(r).size()); 150 assertEquals("Role member does not match expression 'railway' in template Public Transport Route (Rail)",150 assertEquals("Role of relation member does not match expression 'railway' in template Public Transport Route (Rail)", 151 151 testRelation(r).get(0).getDescription()); 152 152 … … 154 154 r.addMember(new RelationMember("stop", createPrimitive("way no-rail-way=yes"))); 155 155 assertEquals(1, testRelation(r).size()); 156 assertEquals(" Role member type 'way' does not match accepted list of'node' in template Public Transport Route (Rail)",156 assertEquals("Type 'way' of relation member with role 'stop' does not match accepted types 'node' in template Public Transport Route (Rail)", 157 157 testRelation(r).get(0).getDescription()); 158 158 … … 160 160 r.addMember(new RelationMember("stop", createPrimitive("node public_transport=stop_position bus=yes"))); 161 161 assertEquals(1, testRelation(r).size()); 162 assertEquals("Role member does not match expression 'public_transport=stop_position && "+162 assertEquals("Role of relation member does not match expression 'public_transport=stop_position && "+ 163 163 "(train=yes || subway=yes || monorail=yes || tram=yes || light_rail=yes)' in template Public Transport Route (Rail)", 164 164 testRelation(r).get(0).getDescription());
Note:
See TracChangeset
for help on using the changeset viewer.