Changeset 31972 in osm for applications/editors/josm/plugins/mapillary/test
- Timestamp:
- 2016-01-11T16:17:06+01:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/utils
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/utils/MapillaryURLTest.java
r31970 r31972 61 61 62 62 @Test 63 public void testConnectURL() throws MalformedURLException{63 public void testConnectURL() { 64 64 assertUrlEquals( 65 65 MapillaryURL.connectURL("http://redirect-host/ä"), … … 89 89 90 90 @Test 91 public void testSearchImageURL() throws MalformedURLException{91 public void testSearchImageURL() { 92 92 assertUrlEquals( 93 93 MapillaryURL.searchImageURL(new Bounds(1.1, 2.22, 3.333, 4.4444), 42), … … 111 111 112 112 @Test 113 public void testSearchSequenceURL() throws MalformedURLException{113 public void testSearchSequenceURL() { 114 114 assertUrlEquals( 115 115 MapillaryURL.searchSequenceURL(new Bounds(-55.55555, -66.666666, 77.7777777, 88.88888888, false), 42), … … 133 133 134 134 @Test 135 public void testSearchTrafficSignURL() throws MalformedURLException{135 public void testSearchTrafficSignURL() { 136 136 assertUrlEquals( 137 137 MapillaryURL.searchTrafficSignURL(new Bounds(1.1, 2.22, 3.333, 4.4444), -42), -
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/utils/PluginStateTest.java
r31484 r31972 35 35 public void uploadTest() { 36 36 assertEquals(false, PluginState.isUploading()); 37 PluginState. imagesToUpload(2);38 assertEquals(2, PluginState. imagesToUpload);39 assertEquals(0, PluginState. imagesUploaded);37 PluginState.addImagesToUpload(2); 38 assertEquals(2, PluginState.getImagesToUpload()); 39 assertEquals(0, PluginState.getImagesUploaded()); 40 40 assertEquals(true, PluginState.isUploading()); 41 41 PluginState.imageUploaded(); 42 assertEquals(1, PluginState. imagesUploaded);42 assertEquals(1, PluginState.getImagesUploaded()); 43 43 assertEquals(true, PluginState.isUploading()); 44 44 PluginState.imageUploaded(); 45 45 assertEquals(false, PluginState.isUploading()); 46 assertEquals(2, PluginState. imagesToUpload);47 assertEquals(2, PluginState. imagesUploaded);46 assertEquals(2, PluginState.getImagesToUpload()); 47 assertEquals(2, PluginState.getImagesUploaded()); 48 48 } 49 49 }
Note:
See TracChangeset
for help on using the changeset viewer.