Changeset 7515 in josm for trunk/test/unit/org
- Timestamp:
- 2014-09-09T08:58:06+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/OpeningHourTestTest.java
r7081 r7515 64 64 final String key = "opening_hours"; 65 65 final List<OpeningHourTest.OpeningHoursTestError> errors = OPENING_HOUR_TEST.checkOpeningHourSyntax(key, "Mo-Tue"); 66 assertThat(errors, hasSize( 1));66 assertThat(errors, hasSize(2)); 67 67 assertThat(errors.get(0).getMessage(), is(key + " - Mo-Tue <--- (Please use the abbreviation \"Tu\" for \"tue\".)")); 68 68 assertThat(errors.get(0).getSeverity(), is(Severity.WARNING)); 69 assertThat(errors.get(1).getMessage(), is(key + " - Mo-Tue <--- (This rule is not very explicit because there is no time selector being used."+ 70 " Please add a time selector to this rule or use a comment to make it more explicit.)")); 71 assertThat(errors.get(1).getSeverity(), is(Severity.WARNING)); 69 72 } 70 73 … … 136 139 assertThat(OPENING_HOUR_TEST.checkOpeningHourSyntax(key, "Mo,Tu 04-17").get(0).getSeverity(), is(Severity.WARNING)); 137 140 assertThat(OPENING_HOUR_TEST.checkOpeningHourSyntax(key, "Mo,Tu 04-17").get(0).getMessage(), 138 is(key + " - Mo,Tu 04-17 <--- (Time range without minutes specified. Not very explicit! Please use this syntax instead e.g. \"12:00-14:00\".)"));141 is(key + " - Mo,Tu 04-17 <--- (Time range without minutes specified. Not very explicit! Please use this syntax instead \"04:00-17:00\".)")); 139 142 assertThat(OPENING_HOUR_TEST.checkOpeningHourSyntax(key, "Mo,Tu 04-17").get(0).getPrettifiedValue(), is("Mo,Tu 04:00-17:00")); 140 143 }
Note:
See TracChangeset
for help on using the changeset viewer.