Changeset 19025 in josm for trunk/test/unit


Ignore:
Timestamp:
2024-04-02T20:50:57+02:00 (8 months ago)
Author:
taylor.smock
Message:

Fix #23177: Change ref:gnis to gnis:feature_id in the waterway tagging options

ref:gnis, gnis:id, tiger:PLACENS, NHS:GNIS_ID, and nhs:gnis_id have
been merged into gnis:feature_id.

The wiki pages have been stable for 6 months, and the changes were discussed on
the OSM forum.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/validation/tests/TagCheckerTest.java

    r18981 r19025  
    244244    @Test
    245245    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"));
    247247        assertEquals(1, errors.size());
    248248        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());
    250250        assertEquals(Severity.WARNING, errors.get(0).getSeverity());
    251251        assertFalse(errors.get(0).isFixable());
Note: See TracChangeset for help on using the changeset viewer.