Changeset 19172 in josm for trunk/test
- Timestamp:
- 2024-08-07T16:34:44+02:00 (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/TagCheckerTest.java
r19025 r19172 233 233 @Test 234 234 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")); 236 236 assertEquals(1, errors.size()); 237 237 assertEquals("Key from a preset is invalid in this region", errors.get(0).getMessage()); 238 assertEquals("Preset P edestrian 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()); 239 239 assertEquals(Severity.WARNING, errors.get(0).getSeverity()); 240 240 assertFalse(errors.get(0).isFixable());
Note:
See TracChangeset
for help on using the changeset viewer.