- Timestamp:
- 2017-01-16T20:36:49+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/RelationCheckerTest.java
r11403 r11468 75 75 List<TestError> errors = testRelation(r); 76 76 assertEquals(1, errors.size()); 77 assertEquals("Role outer2 unknown in templates outer/inner", errors.get(0).getDescription());77 assertEquals("Role 'outer2' unknown in templates 'outer/inner'", errors.get(0).getDescription()); 78 78 } 79 79 … … 86 86 List<TestError> errors = testRelation(r); 87 87 assertEquals(1, errors.size()); 88 assertEquals("Role viamissing", errors.get(0).getDescription());88 assertEquals("Role 'via' missing", errors.get(0).getDescription()); 89 89 } 90 90 … … 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/wayin template Turn Restriction",100 assertEquals("Role member type 'relation' does not match accepted list of 'node/way' in template Turn Restriction", 101 101 errors.get(0).getDescription()); 102 102 } … … 112 112 List<TestError> errors = testRelation(r); 113 113 assertEquals(1, errors.size()); 114 assertEquals("Number of fromroles too high (2)", errors.get(0).getDescription());114 assertEquals("Number of 'from' roles too high (2)", errors.get(0).getDescription()); 115 115 } 116 116 … … 135 135 List<TestError> errors = testRelation(r); 136 136 assertEquals(1, errors.size()); 137 assertEquals("Role member does not match expression powerin template Power Route", errors.get(0).getDescription());137 assertEquals("Role 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 railwayin template Public Transport Route (Rail)",150 assertEquals("Role 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 nodein template Public Transport Route (Rail)",156 assertEquals("Role member type 'way' does not match accepted list of '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 && "+163 "(train=yes || subway=yes || monorail=yes || tram=yes || light_rail=yes) in template Public Transport Route (Rail)",162 assertEquals("Role member does not match expression 'public_transport=stop_position && "+ 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()); 165 165 }
Note:
See TracChangeset
for help on using the changeset viewer.