Changeset 7033 in josm for trunk/test/unit/org/openstreetmap/josm/gui
- Timestamp:
- 2014-05-01T02:34:43+02:00 (11 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/gui/dialogs/relation/sort
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/dialogs/relation/sort/RelationSorterTest.java
r7005 r7033 3 3 4 4 import java.io.FileInputStream; 5 import java.io.FileNotFoundException; 5 import java.io.IOException; 6 import java.io.InputStream; 6 7 import java.util.List; 7 8 … … 24 25 25 26 @BeforeClass 26 public static void loadData() throws FileNotFoundException, IllegalDataException {27 public static void loadData() throws IllegalDataException, IOException { 27 28 Main.initApplicationPreferences(); 28 29 Main.setProjection(Projections.getProjectionByCode("EPSG:3857")); // Mercator 29 testDataset = OsmReader.parseDataSet(new FileInputStream("data_nodist/relation_sort.osm"), NullProgressMonitor.INSTANCE); 30 try (InputStream fis = new FileInputStream("data_nodist/relation_sort.osm")) { 31 testDataset = OsmReader.parseDataSet(fis, NullProgressMonitor.INSTANCE); 32 } 30 33 } 31 34 -
trunk/test/unit/org/openstreetmap/josm/gui/dialogs/relation/sort/WayConnectionTypeCalculatorTest.java
r7005 r7033 3 3 4 4 import java.io.FileInputStream; 5 import java.io.FileNotFoundException; 5 import java.io.IOException; 6 import java.io.InputStream; 6 7 import java.util.Arrays; 7 8 import java.util.List; … … 25 26 26 27 @BeforeClass 27 public static void loadData() throws FileNotFoundException, IllegalDataException {28 public static void loadData() throws IllegalDataException, IOException { 28 29 Main.initApplicationPreferences(); 29 30 Main.setProjection(Projections.getProjectionByCode("EPSG:3857")); // Mercator 30 testDataset = OsmReader.parseDataSet(new FileInputStream("data_nodist/relation_sort.osm"), NullProgressMonitor.INSTANCE); 31 try (InputStream fis = new FileInputStream("data_nodist/relation_sort.osm")) { 32 testDataset = OsmReader.parseDataSet(fis, NullProgressMonitor.INSTANCE); 33 } 31 34 } 32 35
Note:
See TracChangeset
for help on using the changeset viewer.