Changeset 9489 in josm for trunk/test/unit/org/openstreetmap/josm/actions/JoinAreasActionTest.java
- Timestamp:
- 2016-01-16T16:41:44+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/actions/JoinAreasActionTest.java
r8930 r9489 4 4 import static org.junit.Assert.assertEquals; 5 5 6 import java.io.FileInputStream;7 6 import java.io.IOException; 8 7 import java.io.InputStream; … … 39 38 @Test 40 39 public void testTicket10511() throws IOException, IllegalDataException { 41 try (InputStream is = new FileInputStream(TestUtils.getRegressionDataFile(10511, "10511_mini.osm"))) {40 try (InputStream is = TestUtils.getRegressionDataStream(10511, "10511_mini.osm")) { 42 41 DataSet ds = OsmReader.parseDataSet(is, null); 43 42 Main.map.mapView.addLayer(new OsmDataLayer(ds, null, null)); … … 54 53 @Test 55 54 public void testTicket11992() throws IOException, IllegalDataException { 56 try (InputStream is = new FileInputStream(TestUtils.getRegressionDataFile(11992, "shapes.osm"))) {55 try (InputStream is = TestUtils.getRegressionDataStream(11992, "shapes.osm")) { 57 56 DataSet ds = OsmReader.parseDataSet(is, null); 58 57 assertEquals(10, ds.getWays().size());
Note:
See TracChangeset
for help on using the changeset viewer.