Changeset 19172 in josm for trunk/test


Ignore:
Timestamp:
2024-08-07T16:34:44+02:00 (3 months ago)
Author:
taylor.smock
Message:

Fix #23290: Use checks in checkgroups when looking for out-of-region tags

Also fix an i18n issue and update a test to use a key that is currently invalid
in a region.

File:
1 edited

Legend:

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

    r19025 r19172  
    233233    @Test
    234234    void testRegionKey() throws IOException {
    235         final List<TestError> errors = test(OsmUtils.createPrimitive("node highway=crossing crossing_ref=zebra"));
     235        final List<TestError> errors = test(OsmUtils.createPrimitive("node payment:ep_avant=yes"));
    236236        assertEquals(1, errors.size());
    237237        assertEquals("Key from a preset is invalid in this region", errors.get(0).getMessage());
    238         assertEquals("Preset Pedestrian Crossing should not have the key crossing_ref", errors.get(0).getDescription());
     238        assertEquals("Preset Payment Methods should not have the key payment:ep_avant", errors.get(0).getDescription());
    239239        assertEquals(Severity.WARNING, errors.get(0).getSeverity());
    240240        assertFalse(errors.get(0).isFixable());
Note: See TracChangeset for help on using the changeset viewer.