Changeset 19087 in josm


Ignore:
Timestamp:
2024-05-24T23:46:11+02:00 (4 weeks ago)
Author:
stoecker
Message:

Hmm, am I the only one who finds junit output very confusing?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/tools/date/DateUtilsTest.java

    r19086 r19087  
    22package org.openstreetmap.josm.tools.date;
    33
     4import static org.hamcrest.MatcherAssert.assertThat;
    45import static org.junit.jupiter.api.Assertions.assertEquals;
    56import static org.junit.jupiter.api.Assertions.assertNotEquals;
     
    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
Note: See TracChangeset for help on using the changeset viewer.