Changeset 19087 in josm for trunk/test/unit
- Timestamp:
- 2024-05-24T23:46:11+02:00 (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/tools/date/DateUtilsTest.java
r19086 r19087 2 2 package org.openstreetmap.josm.tools.date; 3 3 4 import static org.hamcrest.MatcherAssert.assertThat; 4 5 import static org.junit.jupiter.api.Assertions.assertEquals; 5 6 import static org.junit.jupiter.api.Assertions.assertNotEquals; … … 167 168 String p1 = "1:00:00" + separator + "AM GMT+01:00"; 168 169 String p2 = "1:00:00" + separator + "AM CET"; 169 assertEquals(DateUtils.formatTime(new Date(0), DateFormat.LONG), 170 CoreMatchers.anyOf(CoreMatchers.is(p1), CoreMatchers.is(p2)), 171 "This is mostly dependent upon java.locale.providers."); 170 assertThat("This is mostly dependent upon java.locale.providers.", DateUtils.formatTime(new Date(0), DateFormat.LONG), 171 CoreMatchers.anyOf(CoreMatchers.is(p1), CoreMatchers.is(p2))); 172 172 } 173 173
Note:
See TracChangeset
for help on using the changeset viewer.