Changeset 17625 in josm


Ignore:
Timestamp:
2021-03-21T15:45:32+01:00 (4 years ago)
Author:
simon04
Message:

see #4626 - Fix StyleCacheTest (cannot use PerformanceTestUtils)

File:
1 edited

Legend:

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

    r17615 r17625  
    99import java.awt.Graphics2D;
    1010import java.awt.image.BufferedImage;
     11import java.io.File;
     12import java.io.InputStream;
    1113import java.util.IdentityHashMap;
    1214
     
    1618import org.junit.jupiter.api.Test;
    1719import org.junit.jupiter.api.extension.RegisterExtension;
    18 import org.openstreetmap.josm.PerformanceTestUtils;
    1920import org.openstreetmap.josm.data.Bounds;
    2021import org.openstreetmap.josm.data.osm.DataSet;
     
    2526import org.openstreetmap.josm.gui.MapView;
    2627import org.openstreetmap.josm.gui.NavigatableComponent;
     28import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
     29import org.openstreetmap.josm.io.Compression;
     30import org.openstreetmap.josm.io.OsmReader;
    2731import org.openstreetmap.josm.testutils.JOSMTestRules;
    2832import org.openstreetmap.josm.tools.Pair;
     
    5862    public static void load() throws Exception {
    5963        img = new BufferedImage(IMG_WIDTH, IMG_HEIGHT, BufferedImage.TYPE_INT_ARGB);
    60         dsCity = PerformanceTestUtils.getNeubrandenburgDataSet();
     64        try (InputStream in = Compression.getUncompressedFileInputStream(new File("nodist/data/neubrandenburg.osm.bz2"))) {
     65            dsCity = OsmReader.parseDataSet(in, NullProgressMonitor.INSTANCE);
     66        }
    6167        dsCity2 = new DataSet(dsCity);
    6268    }
Note: See TracChangeset for help on using the changeset viewer.