Changeset 8908 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2015-10-19T16:55:23+02:00 (9 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/actions/downloadtasks
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/actions/downloadtasks/DownloadGpsTaskTest.java
r8904 r8908 3 3 4 4 import static org.junit.Assert.assertFalse; 5 import static org.junit.Assert.assertNotNull; 5 6 import static org.junit.Assert.assertTrue; 6 7 … … 10 11 import org.junit.Test; 11 12 import org.openstreetmap.josm.JOSMFixture; 13 import org.openstreetmap.josm.data.gpx.GpxData; 12 14 13 15 /** … … 51 53 DownloadGpsTask task = new DownloadGpsTask(); 52 54 task.loadUrl(false, REMOTE_FILE, null).get(); 55 GpxData data = task.getDownloadedData(); 56 assertNotNull(data); 57 assertFalse(data.waypoints.isEmpty()); 58 assertFalse(data.tracks.isEmpty()); 53 59 } 54 60 } -
trunk/test/unit/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTaskTest.java
r8904 r8908 3 3 4 4 import static org.junit.Assert.assertFalse; 5 import static org.junit.Assert.assertNotNull; 5 6 import static org.junit.Assert.assertTrue; 6 7 … … 10 11 import org.junit.Test; 11 12 import org.openstreetmap.josm.JOSMFixture; 13 import org.openstreetmap.josm.data.osm.DataSet; 12 14 13 15 /** … … 52 54 DownloadOsmTask task = new DownloadOsmTask(); 53 55 task.loadUrl(false, REMOTE_FILE, null).get(); 56 DataSet ds = task.getDownloadedData(); 57 assertNotNull(ds); 58 assertFalse(ds.getNodes().isEmpty()); 59 assertFalse(ds.getWays().isEmpty()); 54 60 } 55 61 }
Note:
See TracChangeset
for help on using the changeset viewer.