Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java
r14571 r14585 591 591 marktr("Value ''{0}'' for key ''{1}'' looks like ''{2}''."), prop.getValue(), key, newValue) 592 592 .primitives(p) 593 .fix(() -> new ChangePropertyCommand(p, key, newValue))594 593 .build()); 595 594 withErrors.put(p, "WPV"); … … 781 780 int code = testError.getCode(); 782 781 return code == INVALID_KEY || code == EMPTY_VALUES || code == INVALID_SPACE || 783 code == INVALID_KEY_SPACE || code == INVALID_HTML || code == MISSPELLED_VALUE ||782 code == INVALID_KEY_SPACE || code == INVALID_HTML || 784 783 code == MULTIPLE_SPACES; 785 784 } -
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/TagCheckerTest.java
r14579 r14585 108 108 assertEquals("Value 'forrest' for key 'landuse' looks like 'forest'.", errors.get(0).getDescription()); 109 109 assertEquals(Severity.WARNING, errors.get(0).getSeverity()); 110 assert True(errors.get(0).isFixable());110 assertFalse(errors.get(0).isFixable()); 111 111 } 112 112 … … 136 136 assertEquals("Value 'residentail' for key 'highway' looks like 'residential'.", errors.get(0).getDescription()); 137 137 assertEquals(Severity.WARNING, errors.get(0).getSeverity()); 138 assert True(errors.get(0).isFixable());138 assertFalse(errors.get(0).isFixable()); 139 139 } 140 140 … … 208 208 assertEquals("Value 'Residential' for key 'highway' looks like 'residential'.", errors.get(0).getDescription()); 209 209 assertEquals(Severity.WARNING, errors.get(0).getSeverity()); 210 assert True(errors.get(0).isFixable());210 assertFalse(errors.get(0).isFixable()); 211 211 } 212 212
Note:
See TracChangeset
for help on using the changeset viewer.