Ignore:
Timestamp:
2017-08-31T17:52:05+02:00 (7 years ago)
Author:
Don-vip
Message:

fix #15210 - Fix support of IBM JVM

File:
1 edited

Legend:

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

    r12217 r12703  
    225225        String javaVersion = System.getProperty("java.version");
    226226        try {
     227            System.setProperty("java.version", "1.8.0");
     228            assertEquals(0, Utils.getJavaUpdate());
     229
    227230            System.setProperty("java.version", "1.8.0_131");
    228231            assertEquals(131, Utils.getJavaUpdate());
     
    265268            System.setProperty("java.runtime.version", "9.1.2+62");
    266269            assertEquals(62, Utils.getJavaBuild());
     270
     271            // IBM version example
     272            System.setProperty("java.runtime.version", "pwa6480sr4fp7-20170627_02 (SR4 FP7)");
     273            assertEquals(0, Utils.getJavaBuild());
     274
    267275        } finally {
    268276            System.setProperty("java.runtime.version", javaVersion);
Note: See TracChangeset for help on using the changeset viewer.