Skip to content

Commit d8782a5

Browse files
author
stoecker
committed
Hmm, am I the only one who finds junit output very confusing?
git-svn-id: https://josm.openstreetmap.de/svn/trunk@19087 0c6e7542-c601-0410-84e7-c038aed88b3b
1 parent 0aa6d37 commit d8782a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/unit/org/openstreetmap/josm/tools/date/DateUtilsTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// License: GPL. For details, see LICENSE file.
22
package org.openstreetmap.josm.tools.date;
33

4+
import static org.hamcrest.MatcherAssert.assertThat;
45
import static org.junit.jupiter.api.Assertions.assertEquals;
56
import static org.junit.jupiter.api.Assertions.assertNotEquals;
67
import static org.junit.jupiter.api.Assertions.assertNotNull;
@@ -166,9 +167,8 @@ void testFormatTime() {
166167
setTimeZone(TimeZone.getTimeZone("Europe/Berlin"));
167168
String p1 = "1:00:00" + separator + "AM GMT+01:00";
168169
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)));
172172
}
173173

174174
/**

0 commit comments

Comments
 (0)