Ignore:
Timestamp:
2016-01-16T16:41:44+01:00 (8 years ago)
Author:
Don-vip
Message:

unit tests code refactoring/cleanup

File:
1 edited

Legend:

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

    r8930 r9489  
    44import static org.junit.Assert.assertEquals;
    55
    6 import java.io.FileInputStream;
    76import java.io.IOException;
    87import java.io.InputStream;
     
    3938    @Test
    4039    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")) {
    4241            DataSet ds = OsmReader.parseDataSet(is, null);
    4342            Main.map.mapView.addLayer(new OsmDataLayer(ds, null, null));
     
    5453    @Test
    5554    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")) {
    5756            DataSet ds = OsmReader.parseDataSet(is, null);
    5857            assertEquals(10, ds.getWays().size());
Note: See TracChangeset for help on using the changeset viewer.