Changeset 17615 in josm for trunk/test/functional


Ignore:
Timestamp:
2021-03-21T13:56:13+01:00 (4 years ago)
Author:
simon04
Message:

see #4626 - Extract PerformanceTestUtils.getNeubrandenburgDataSet

File:
1 edited

Legend:

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

    r17275 r17615  
    99import java.awt.Graphics2D;
    1010import java.awt.image.BufferedImage;
    11 import java.io.File;
    12 import java.io.InputStream;
    1311import java.util.IdentityHashMap;
    1412
     
    1816import org.junit.jupiter.api.Test;
    1917import org.junit.jupiter.api.extension.RegisterExtension;
     18import org.openstreetmap.josm.PerformanceTestUtils;
    2019import org.openstreetmap.josm.data.Bounds;
    2120import org.openstreetmap.josm.data.osm.DataSet;
     
    2625import org.openstreetmap.josm.gui.MapView;
    2726import org.openstreetmap.josm.gui.NavigatableComponent;
    28 import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
    29 import org.openstreetmap.josm.io.Compression;
    30 import org.openstreetmap.josm.io.OsmReader;
    3127import org.openstreetmap.josm.testutils.JOSMTestRules;
    3228import org.openstreetmap.josm.tools.Pair;
     
    6258    public static void load() throws Exception {
    6359        img = new BufferedImage(IMG_WIDTH, IMG_HEIGHT, BufferedImage.TYPE_INT_ARGB);
    64 
    65         try (
    66             InputStream fisC = Compression.getUncompressedFileInputStream(new File("nodist/data/neubrandenburg.osm.bz2"));
    67         ) {
    68             dsCity = OsmReader.parseDataSet(fisC, NullProgressMonitor.INSTANCE);
    69         }
     60        dsCity = PerformanceTestUtils.getNeubrandenburgDataSet();
    7061        dsCity2 = new DataSet(dsCity);
    7162    }
Note: See TracChangeset for help on using the changeset viewer.