Changeset 15815 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2020-02-05T19:53:04+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/OpeningHourTestTest.java
r15318 r15815 92 92 final List<OpeningHourTest.OpeningHoursTestError> errors = openingHourTest.checkOpeningHourSyntax(key, "Mo-Tue"); 93 93 assertThat(errors, hasSize(2)); 94 assertEquals(key + " - Mo-Tue <--- (Please use the abbreviation \"Tu\" for \"tue\".)", errors.get(0).getMessage());94 assertEquals(key + " - Mo-Tue <--- (Please use the English abbreviation \"Tu\" for \"tue\".)", errors.get(0).getMessage()); 95 95 assertEquals(Severity.WARNING, errors.get(0).getSeverity()); 96 96 assertEquals(key + 97 97 " - Mo-Tue <--- (This rule is not very explicit because there is no time selector being used."+ 98 " A time selector is the part specifying hours when the object is opened, for example \"10:00-19:00\"."+ 98 99 " Please add a time selector to this rule or use a comment to make it more explicit.)", errors.get(1).getMessage()); 99 100 assertEquals(Severity.WARNING, errors.get(1).getSeverity()); … … 243 244 Logging.clearLastErrorAndWarnings(); 244 245 assertTrue(openingHourTest.checkOpeningHourSyntax("opening_hours", "SH off").isEmpty()); 245 List<String> errors = Logging.getLastErrorAndWarnings();246 assertFalse(errors.isEmpty());247 assertTrue(errors.get(0), errors.get(0).contains("no SH definition"));248 246 } 249 247 }
Note:
See TracChangeset
for help on using the changeset viewer.