Changeset 19025 in josm for trunk/test/unit
- Timestamp:
- 2024-04-02T20:50:57+02:00 (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/TagCheckerTest.java
r18981 r19025 244 244 @Test 245 245 void testRegionTag() throws IOException { 246 final List<TestError> errors = test(OsmUtils.createPrimitive("relation type=waterway ref:gnis=123456"));246 final List<TestError> errors = test(OsmUtils.createPrimitive("relation type=waterway gnis:feature_id=123456")); 247 247 assertEquals(1, errors.size()); 248 248 assertEquals("Key from a preset is invalid in this region", errors.get(0).getMessage()); 249 assertEquals("Preset Waterway should not have the key ref:gnis", errors.get(0).getDescription());249 assertEquals("Preset Waterway should not have the key gnis:feature_id", errors.get(0).getDescription()); 250 250 assertEquals(Severity.WARNING, errors.get(0).getSeverity()); 251 251 assertFalse(errors.get(0).isFixable());
Note:
See TracChangeset
for help on using the changeset viewer.