Changeset 16371 in josm for trunk/test


Ignore:
Timestamp:
2020-04-20T21:46:22+02:00 (5 years ago)
Author:
GerdP
Message:

see #19121: fix unit test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/actions/JoinAreasActionTest.java

    r16048 r16371  
    1919import org.openstreetmap.josm.TestUtils;
    2020import org.openstreetmap.josm.actions.search.SearchAction;
     21import org.openstreetmap.josm.data.Bounds;
     22import org.openstreetmap.josm.data.DataSource;
    2123import org.openstreetmap.josm.data.osm.DataSet;
    2224import org.openstreetmap.josm.data.osm.IPrimitive;
     
    8385        try (InputStream is = TestUtils.getRegressionDataStream(9599, "three_old.osm")) {
    8486            DataSet ds = OsmReader.parseDataSet(is, null);
     87            ds.addDataSource(new DataSource(new Bounds(-90, -180, 90, 180), "Everywhere"));
    8588            Layer layer = new OsmDataLayer(ds, null, null);
    8689            MainApplication.getLayerManager().addLayer(layer);
     
    154157        try (InputStream is = TestUtils.getRegressionDataStream(18744, "18744-sample.osm")) {
    155158            DataSet ds = OsmReader.parseDataSet(is, null);
     159            ds.addDataSource(new DataSource(new Bounds(-90, -180, 90, 180), "Everywhere"));
    156160            Layer layer = new OsmDataLayer(ds, null, null);
    157161            MainApplication.getLayerManager().addLayer(layer);
Note: See TracChangeset for help on using the changeset viewer.