Changeset 13520 in josm for trunk/test


Ignore:
Timestamp:
2018-03-12T22:32:42+01:00 (7 years ago)
Author:
Don-vip
Message:

see #15560 - fix detection of Java version >= 10

File:
1 edited

Legend:

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

    r12703 r13520  
    213213            System.setProperty("java.version", "9.0.1");
    214214            assertEquals(9, Utils.getJavaVersion());
     215
     216            System.setProperty("java.version", "10");
     217            assertEquals(10, Utils.getJavaVersion());
     218
     219            System.setProperty("java.version", "10-ea");
     220            assertEquals(10, Utils.getJavaVersion());
     221
     222            System.setProperty("java.version", "10.0.1");
     223            assertEquals(10, Utils.getJavaVersion());
    215224        } finally {
    216225            System.setProperty("java.version", javaVersion);
Note: See TracChangeset for help on using the changeset viewer.