Changeset 32034 in osm for applications/editors/josm/plugins/mapillary/test
- Timestamp:
- 2016-01-31T11:38:09+01:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/ImportTest.java
r32033 r32034 1 1 package org.openstreetmap.josm.plugins.mapillary; 2 2 3 import static org.junit.Assert.*; 4 5 import org.junit.Test; 3 import static org.junit.Assert.assertEquals; 4 import static org.junit.Assert.assertTrue; 6 5 7 6 import java.io.File; … … 10 9 import javax.imageio.IIOException; 11 10 11 import org.junit.Test; 12 12 import org.openstreetmap.josm.data.coor.LatLon; 13 import org.openstreetmap.josm.plugins.mapillary.utils. MapillaryUtils;13 import org.openstreetmap.josm.plugins.mapillary.utils.ImageUtil; 14 14 15 15 /** … … 25 25 */ 26 26 @Test 27 public void importNoTagsTest() { 27 public void importNoTagsTest() throws IOException { 28 28 File image = new File("images/icon16.png"); 29 MapillaryImportedImage img = MapillaryUtils.readNoTags(image, 30 new LatLon(0, 0)); 29 MapillaryImportedImage img = ImageUtil.readImagesFrom(image, new LatLon(0, 0)).get(0); 31 30 assertEquals(0, img.getCa(), 0.01); 32 31 assertTrue(new LatLon(0, 0).equalsEpsilon(img.getLatLon())); -
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/oauth/UploadTest.java
r31512 r32034 20 20 import org.openstreetmap.josm.plugins.mapillary.AbstractTest; 21 21 import org.openstreetmap.josm.plugins.mapillary.MapillaryImportedImage; 22 import org.openstreetmap.josm.plugins.mapillary. oauth.UploadUtils;22 import org.openstreetmap.josm.plugins.mapillary.utils.ImageUtil; 23 23 import org.openstreetmap.josm.plugins.mapillary.utils.MapillaryUtils; 24 24 … … 35 35 */ 36 36 @Test 37 public void updateFileTest() { 37 public void updateFileTest() throws IOException { 38 38 File image = new File("images/icon16.png"); 39 MapillaryImportedImage img = MapillaryUtils.readNoTags(image, 40 new LatLon(0, 0)); 39 MapillaryImportedImage img = ImageUtil.readImagesFrom(image, new LatLon(0, 0)).get(0); 41 40 File updatedFile = null; 42 41 try {
Note:
See TracChangeset
for help on using the changeset viewer.