Changeset 31456 in osm for applications/editors/josm/plugins/mapillary/test
- Timestamp:
- 2015-08-05T16:28:26+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary
- Files:
-
- 1 added
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/AbstractTest.java
r31425 r31456 2 2 3 3 import org.junit.BeforeClass; 4 import org.openstreetmap.josm.plugins.mapillary.util .TestUtil;4 import org.openstreetmap.josm.plugins.mapillary.utils.TestUtil; 5 5 6 6 /** -
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/ImportTest.java
r31425 r31456 14 14 import org.openstreetmap.josm.data.coor.LatLon; 15 15 import org.openstreetmap.josm.plugins.mapillary.actions.MapillaryImportAction; 16 import org.openstreetmap.josm.plugins.mapillary.utils.MapillaryUtils; 16 17 17 18 /** … … 61 62 num[2] = new RationalNumber(0, 1); 62 63 String ref = GpsTagConstants.GPS_TAG_GPS_LATITUDE_REF_VALUE_NORTH; 63 assertEquals(1, Mapillary ImportAction.degMinSecToDouble(num, ref), 0.01);64 assertEquals(1, MapillaryUtils.degMinSecToDouble(num, ref), 0.01); 64 65 ref = GpsTagConstants.GPS_TAG_GPS_LATITUDE_REF_VALUE_SOUTH; 65 assertEquals(-1, Mapillary ImportAction.degMinSecToDouble(num, ref), 0.01);66 assertEquals(-1, MapillaryUtils.degMinSecToDouble(num, ref), 0.01); 66 67 num[0] = new RationalNumber(180, 1); 67 assertEquals(-180, Mapillary ImportAction.degMinSecToDouble(num, ref), 0.01);68 assertEquals(-180, MapillaryUtils.degMinSecToDouble(num, ref), 0.01); 68 69 num[0] = new RationalNumber(190, 1); 69 assertEquals(170, Mapillary ImportAction.degMinSecToDouble(num, ref), 0.01);70 assertEquals(170, MapillaryUtils.degMinSecToDouble(num, ref), 0.01); 70 71 } 71 72 72 } -
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/UploadTest.java
r31455 r31456 19 19 import org.openstreetmap.josm.data.coor.LatLon; 20 20 import org.openstreetmap.josm.plugins.mapillary.actions.MapillaryImportAction; 21 import org.openstreetmap.josm.plugins.mapillary.oauth.OAuthUtils; 21 import org.openstreetmap.josm.plugins.mapillary.oauth.UploadUtils; 22 import org.openstreetmap.josm.plugins.mapillary.utils.MapillaryUtils; 22 23 23 24 public class UploadTest extends AbstractTest { … … 33 34 File updatedFile = null; 34 35 try { 35 updatedFile = OAuthUtils.updateFile(img);36 updatedFile = UploadUtils.updateFile(img); 36 37 ImageMetadata metadata = Imaging.getMetadata(updatedFile); 37 38 final JpegImageMetadata jpegMetadata = (JpegImageMetadata) metadata; … … 48 49 assertTrue(jpegMetadata 49 50 .findEXIFValueWithExactMatch(ExifTagConstants.EXIF_TAG_DATE_TIME_ORIGINAL) != null); 50 assertEquals(0, Mapillary ImportAction.degMinSecToDouble(51 assertEquals(0, MapillaryUtils.degMinSecToDouble( 51 52 (RationalNumber[]) jpegMetadata.findEXIFValueWithExactMatch( 52 53 GpsTagConstants.GPS_TAG_GPS_LATITUDE).getValue(), … … 55 56 GpsTagConstants.GPS_TAG_GPS_LATITUDE_REF).getValue() 56 57 .toString()), 0.01); 57 assertEquals(0, Mapillary ImportAction.degMinSecToDouble(58 assertEquals(0, MapillaryUtils.degMinSecToDouble( 58 59 (RationalNumber[]) jpegMetadata.findEXIFValueWithExactMatch( 59 60 GpsTagConstants.GPS_TAG_GPS_LONGITUDE).getValue(), -
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/utils/TestUtil.java
r31455 r31456 1 package org.openstreetmap.josm.plugins.mapillary.util ;1 package org.openstreetmap.josm.plugins.mapillary.utils; 2 2 3 3 import java.io.File;
Note:
See TracChangeset
for help on using the changeset viewer.