Changeset 16094 in josm


Ignore:
Timestamp:
2020-03-08T21:08:30+01:00 (2 years ago)
Author:
Don-vip
Message:

see #18468 - make MapCSSRendererTest run on Windows when JAVA_HOME points to an AdoptOpenJDK installation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/functional/org/openstreetmap/josm/gui/mappaint/MapCSSRendererTest.java

    r15735 r16094  
    1919import java.util.Collections;
    2020import java.util.List;
     21import java.util.Locale;
    2122import java.util.stream.Collectors;
    2223import java.util.stream.Stream;
     
    159160    public void forOpenJDK() {
    160161        String javaHome = System.getProperty("java.home");
    161         Assume.assumeTrue("Test requires openJDK", javaHome != null && javaHome.contains("openjdk"));
     162        Assume.assumeTrue("Test requires openJDK", javaHome != null && javaHome.toLowerCase(Locale.ENGLISH).contains("openjdk"));
    162163
    163164        List<String> fonts = Arrays.asList(GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames());
Note: See TracChangeset for help on using the changeset viewer.