Ignore:
Timestamp:
2024-04-24T20:02:57+02:00 (2 months ago)
Author:
taylor.smock
Message:

Fix last failing test in Java 21

  • Generate Java 21 image files (probably from r19043: Drop COMPAT locale provider).
  • Replace most deprecated function calls and classes in tests with non-deprecated functions.
File:
1 edited

Legend:

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

    r19055 r19056  
    4141import org.openstreetmap.josm.testutils.annotations.Projection;
    4242import org.openstreetmap.josm.tools.ColorHelper;
     43import org.openstreetmap.josm.tools.Utils;
    4344
    4445/**
     
    354355            // Sometimes Java changes how things are rendered. When that happens, use separate reference files. It is
    355356            // usually "reference" + javaSuffix + ".png".
     357            final File customReferenceFile = new File(getTestDirectory() + "/reference-java" + Utils.getJavaVersion() + ".png");
     358            if (customReferenceFile.isFile()) {
     359                return customReferenceFile;
     360            }
    356361            return new File(getTestDirectory() + "/reference.png");
    357362        }
Note: See TracChangeset for help on using the changeset viewer.