Changeset 14490 in josm for trunk/test
- Timestamp:
- 2018-12-02T16:04:34+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/TagCheckerTest.java
r14273 r14490 101 101 final List<TestError> errors = test(OsmUtils.createPrimitive("node landuse=forrest")); 102 102 assertEquals(1, errors.size()); 103 assertEquals("Presets do not contain property value", errors.get(0).getMessage()); 104 assertEquals("Value 'forrest' for key 'landuse' not in presets.", errors.get(0).getDescription()); 103 assertEquals("Misspelled property value", errors.get(0).getMessage()); 104 assertEquals("Value 'forrest' for key 'landuse' looks like 'forest'.", errors.get(0).getDescription()); 105 } 106 107 /** 108 * Check for misspelled value with multiple alternatives in presets. 109 * @throws IOException if any I/O error occurs 110 */ 111 @Test 112 public void testMisspelledTag2() throws IOException { 113 final List<TestError> errors = test(OsmUtils.createPrimitive("node highway=servics")); 114 assertEquals(1, errors.size()); 115 assertEquals("Misspelled property value", errors.get(0).getMessage()); 116 assertEquals("Value 'servics' for key 'highway' looks like one of [service, services].", errors.get(0).getDescription()); 105 117 } 106 118
Note:
See TracChangeset
for help on using the changeset viewer.