Changeset 16178 in josm for trunk/test


Ignore:
Timestamp:
2020-03-20T21:06:06+01:00 (5 years ago)
Author:
Don-vip
Message:

fix #18956 - allow TestError to be built with an empty list of primitives + make OpeningHourTestTest work on Windows

File:
1 edited

Legend:

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

    r16114 r16178  
    8383        final String key = "opening_hours";
    8484        String value = ".";
    85         assertEquals("Vorgefunden wurde:  \".\" \". \" in Zeile 0, Spalte 0\nErwartet wurde: <EOF>",
     85        assertEquals(String.format("Vorgefunden wurde:  \".\" \". \" in Zeile 0, Spalte 0%nErwartet wurde: <EOF>"),
    8686                checkOpeningHourSyntax(key, value, Locale.GERMAN).get(0).getDescription());
    87         assertEquals("Encountered:  \".\" \". \" at line 0, column 0\nWas expecting: <EOF>",
     87        assertEquals(String.format("Encountered:  \".\" \". \" at line 0, column 0%nWas expecting: <EOF>"),
    8888                checkOpeningHourSyntax(key, value, Locale.ENGLISH).get(0).getDescription());
    8989        value = "Mon-Thu 12-18";
     
    140140        final String key = "opening_hours";
    141141        assertThat(checkOpeningHourSyntax(key, "badtext"), hasSize(1));
    142         assertEquals("Encountered:  <UNEXPECTED_CHAR> \"b \" at line 0, column 0\nWas expecting: <EOF>",
     142        assertEquals(String.format("Encountered:  <UNEXPECTED_CHAR> \"b \" at line 0, column 0%nWas expecting: <EOF>"),
    143143                checkOpeningHourSyntax(key, "badtext").get(0).getDescription().trim());
    144144        assertThat(checkOpeningHourSyntax(key, "5.00 p.m-11.00 p.m"), hasSize(1));
    145         assertEquals("Encountered:  <UNEXPECTED_CHAR> \"p \" at line 1, column 2\nWas expecting: <EOF>",
     145        assertEquals(String.format("Encountered:  <UNEXPECTED_CHAR> \"p \" at line 1, column 2%nWas expecting: <EOF>"),
    146146                checkOpeningHourSyntax(key, "5.00 p.m-11.00 p.m").get(0).getDescription());
    147147    }
Note: See TracChangeset for help on using the changeset viewer.