Changeset 19086 in josm


Ignore:
Timestamp:
2024-05-24T22:21:22+02:00 (5 months ago)
Author:
stoecker
Message:

fix some test failures

Location:
trunk/test/unit/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/mappaint/RenderingCLIAreaTest.java

    r18799 r19086  
    4545        // 1
    4646        runs.add(new Object[] {"--scale 4000 --bounds " + param(bFeldberg),
    47                 CoreMatchers.is(scaleFeldberg4000),
     47                isFP(scaleFeldberg4000, ErrorMode.ABSOLUTE, 0.000000000001d),
    4848                CoreMatchers.is(bFeldberg)});
    4949
  • trunk/test/unit/org/openstreetmap/josm/tools/date/DateUtilsTest.java

    r19057 r19086  
    1717import java.util.concurrent.ForkJoinPool;
    1818
     19import org.hamcrest.CoreMatchers;
    1920import org.junit.jupiter.api.Disabled;
    2021import org.junit.jupiter.api.Test;
     
    164165
    165166        setTimeZone(TimeZone.getTimeZone("Europe/Berlin"));
    166         assertEquals("1:00:00" + separator + "AM GMT+01:00", DateUtils.formatTime(new Date(0),
    167             DateFormat.LONG), "This is mostly dependent upon java.locale.providers. CET is also OK.");
     167        String p1 = "1:00:00" + separator + "AM GMT+01:00";
     168        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.");
    168172    }
    169173
Note: See TracChangeset for help on using the changeset viewer.