Changeset 15034 in josm for trunk/test/functional
- Timestamp:
- 2019-05-02T04:33:57+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/functional/org/openstreetmap/josm/gui/mappaint/MapCSSRendererTest.java
r14120 r15034 10 10 import java.awt.image.BufferedImage; 11 11 import java.io.File; 12 import java.io.FileInputStream;13 import java.io.FileNotFoundException;14 12 import java.io.IOException; 13 import java.nio.file.Files; 14 import java.nio.file.Paths; 15 15 import java.text.MessageFormat; 16 16 import java.util.ArrayList; … … 345 345 } 346 346 347 public DataSet getOsmDataSet() throws FileNotFoundException, IllegalDataException {347 public DataSet getOsmDataSet() throws IllegalDataException, IOException { 348 348 if (ds == null) { 349 ds = OsmReader.parseDataSet( new FileInputStream(getTestDirectory() + "/data.osm"), null);349 ds = OsmReader.parseDataSet(Files.newInputStream(Paths.get(getTestDirectory(), "data.osm")), null); 350 350 } 351 351 return ds; 352 352 } 353 353 354 public Bounds getTestArea() throws FileNotFoundException, IllegalDataException {354 public Bounds getTestArea() throws IllegalDataException, IOException { 355 355 if (testArea == null) { 356 356 testArea = getOsmDataSet().getDataSourceBounds().get(0);
Note:
See TracChangeset
for help on using the changeset viewer.