Changeset 32033 in osm for applications/editors/josm/plugins/mapillary/test
- Timestamp:
- 2016-01-31T11:37:54+01:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/ImportTest.java
r31512 r32033 40 40 @Test(expected = IIOException.class) 41 41 public void testInvalidFiles() throws IOException { 42 MapillaryImportedImage img = new MapillaryImportedImage( 0, 0, 0, null);42 MapillaryImportedImage img = new MapillaryImportedImage(new LatLon(0, 0), 0, null); 43 43 assertEquals(null, img.getImage()); 44 44 assertEquals(null, img.getFile()); 45 45 46 img = new MapillaryImportedImage( 0, 0, 0, new File(""));46 img = new MapillaryImportedImage(new LatLon(0, 0), 0, new File("")); 47 47 assertEquals(new File(""), img.getFile()); 48 48 img.getImage(); -
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/MapillaryAbstractImageTest.java
r31460 r32033 10 10 import org.junit.Test; 11 11 import org.openstreetmap.josm.Main; 12 import org.openstreetmap.josm.data.coor.LatLon; 12 13 13 14 /** … … 23 24 TimeZone.setDefault(TimeZone.getTimeZone("GMT+0745")); 24 25 25 MapillaryAbstractImage mai = new MapillaryImportedImage( 0, 0, 0, null);26 MapillaryAbstractImage mai = new MapillaryImportedImage(new LatLon(0, 0), 0, null); 26 27 mai.setCapturedAt(1044087606000l); // in timezone GMT+0745 this is Saturday, February 1, 2003 16:05:06 27 28 -
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/MapillaryDataTest.java
r31909 r32033 9 9 import org.junit.Before; 10 10 import org.junit.Test; 11 import org.openstreetmap.josm.data.coor.LatLon; 11 12 12 13 /** … … 31 32 @Before 32 33 public void setUp() { 33 this.img1 = new MapillaryImage("key1", 0.1, 0.1, 90);34 this.img2 = new MapillaryImage("key2", 0.2, 0.2, 90);35 this.img3 = new MapillaryImage("key3", 0.3, 0.3, 90);36 this.img4 = new MapillaryImage("key4", 0.4, 0.4, 90);34 this.img1 = new MapillaryImage("key1", new LatLon(0.1, 0.1), 90); 35 this.img2 = new MapillaryImage("key2", new LatLon(0.2, 0.2), 90); 36 this.img3 = new MapillaryImage("key3", new LatLon(0.3, 0.3), 90); 37 this.img4 = new MapillaryImage("key4", new LatLon(0.4, 0.4), 90); 37 38 this.seq = new MapillarySequence(); 38 39 … … 74 75 public void sizeTest() { 75 76 assertEquals(4, this.data.size()); 76 this.data.add(new MapillaryImage("key5", 0.1, 0.1, 90));77 this.data.add(new MapillaryImage("key5", new LatLon(0.1, 0.1), 90)); 77 78 assertEquals(5, this.data.size()); 78 79 } -
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/MapillarySequenceTest.java
r31460 r32033 8 8 import org.junit.Before; 9 9 import org.junit.Test; 10 import org.openstreetmap.josm.data.coor.LatLon; 10 11 11 12 /** … … 29 30 @Before 30 31 public void setUp() { 31 this.img1 = new MapillaryImage("key1", 0.1, 0.1, 90);32 this.img2 = new MapillaryImage("key2", 0.2, 0.2, 90);33 this.img3 = new MapillaryImage("key3", 0.3, 0.3, 90);34 this.img4 = new MapillaryImage("key4", 0.4, 0.4, 90);32 this.img1 = new MapillaryImage("key1", new LatLon(0.1, 0.1), 90); 33 this.img2 = new MapillaryImage("key2", new LatLon(0.2, 0.2), 90); 34 this.img3 = new MapillaryImage("key3", new LatLon(0.3, 0.3), 90); 35 this.img4 = new MapillaryImage("key4", new LatLon(0.4, 0.4), 90); 35 36 this.seq = new MapillarySequence(); 36 37 … … 63 64 // that is not in the sequence. 64 65 try { 65 this.seq.next(new MapillaryImage("key5", 0.5, 0.5, 90));66 this.seq.next(new MapillaryImage("key5", new LatLon(0.5, 0.5), 90)); 66 67 fail(); 67 68 } catch (IllegalArgumentException e) { … … 72 73 // image that is not in the sequence. 73 74 try { 74 this.seq.previous(new MapillaryImage("key5", 0.5, 0.5, 90));75 this.seq.previous(new MapillaryImage("key5", new LatLon(0.5, 0.5), 90)); 75 76 fail(); 76 77 } catch (IllegalArgumentException e) { -
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/history/MapillaryRecordTest.java
r31909 r32033 11 11 import org.junit.Before; 12 12 import org.junit.Test; 13 import org.openstreetmap.josm.data.coor.LatLon; 13 14 import org.openstreetmap.josm.plugins.mapillary.AbstractTest; 14 15 import org.openstreetmap.josm.plugins.mapillary.MapillaryAbstractImage; … … 43 44 public void setUp() { 44 45 this.record = new MapillaryRecord(); 45 this.img1 = new MapillaryImage("key1", 0.1, 0.1, 0.1);46 this.img2 = new MapillaryImage("key2", 0.2, 0.2, 0.2);47 this.img3 = new MapillaryImage("key3", 0.3, 0.3, 0.3);46 this.img1 = new MapillaryImage("key1", new LatLon(0.1, 0.1), 0.1); 47 this.img2 = new MapillaryImage("key2", new LatLon(0.2, 0.2), 0.2); 48 this.img3 = new MapillaryImage("key3", new LatLon(0.3, 0.3), 0.3); 48 49 MapillaryLayer.getInstance().getData().getImages().clear(); 49 50 }
Note:
See TracChangeset
for help on using the changeset viewer.