Ignore:
Timestamp:
2013-11-28T18:51:43+01:00 (10 years ago)
Author:
simon04
Message:

fix #9367 - opening_hours - upgrade validator so that it will can fix missing minutes in automatic way

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/validation/tests/OpeningHourTestTest.java

    r6415 r6420  
    8282
    8383    @Test
     84    public void testCheckOpeningHourSyntaxTicket9367() throws Exception {
     85        final String key = "opening_hours";
     86        assertThat(OPENING_HOUR_TEST.checkOpeningHourSyntax(key, "Mo,Tu 04-17").get(0).getSeverity(), is(Severity.WARNING));
     87        assertThat(OPENING_HOUR_TEST.checkOpeningHourSyntax(key, "Mo,Tu 04-17").get(0).getMessage(), is("Mo,Tu 04-17 <--- (Time range without minutes specified. Not very explicit! Please use this syntax instead e.g. \"12:00-14:00\".)"));
     88        assertThat(OPENING_HOUR_TEST.checkOpeningHourSyntax(key, "Mo,Tu 04-17").get(0).getPrettifiedValue(), is("Mo,Tu 04:00-17:00"));
     89    }
     90
     91    @Test
    8492    public void testCheckServiceTimeSyntax1() throws Exception {
    8593        final String key = "service_times";
Note: See TracChangeset for help on using the changeset viewer.