Changeset 16178 in josm for trunk/test
- Timestamp:
- 2020-03-20T21:06:06+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/OpeningHourTestTest.java
r16114 r16178 83 83 final String key = "opening_hours"; 84 84 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>"), 86 86 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>"), 88 88 checkOpeningHourSyntax(key, value, Locale.ENGLISH).get(0).getDescription()); 89 89 value = "Mon-Thu 12-18"; … … 140 140 final String key = "opening_hours"; 141 141 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>"), 143 143 checkOpeningHourSyntax(key, "badtext").get(0).getDescription().trim()); 144 144 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>"), 146 146 checkOpeningHourSyntax(key, "5.00 p.m-11.00 p.m").get(0).getDescription()); 147 147 }
Note:
See TracChangeset
for help on using the changeset viewer.