Changeset 32036 in osm for applications/editors
- Timestamp:
- 2016-01-31T11:38:38+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/MapillaryLayerTest.java
r31989 r32036 8 8 9 9 import org.junit.Test; 10 import org.openstreetmap.josm.data.coor.LatLon; 10 11 import org.openstreetmap.josm.data.imagery.ImageryInfo; 11 12 import org.openstreetmap.josm.gui.layer.ImageryLayer; … … 25 26 } 26 27 27 @Test(expected =UnsupportedOperationException.class)28 @Test(expected = UnsupportedOperationException.class) 28 29 public void testMergeFrom() { 29 30 MapillaryLayer.getInstance().mergeFrom(dummyLayer); … … 32 33 @Test 33 34 public void testSetVisible() { 34 MapillaryLayer.getInstance().getData().add(new MapillaryImportedImage( 0.0, 0.0, 0.0, new File("")));35 MapillaryLayer.getInstance().getData().add(new MapillaryImportedImage( 0.0, 0.0, 0.0, new File("")));36 MapillaryImportedImage invisibleImage = new MapillaryImportedImage( 0.0, 0.0, 0.0, new File(""));35 MapillaryLayer.getInstance().getData().add(new MapillaryImportedImage(new LatLon(0.0, 0.0), 0.0, new File(""))); 36 MapillaryLayer.getInstance().getData().add(new MapillaryImportedImage(new LatLon(0.0, 0.0), 0.0, new File(""))); 37 MapillaryImportedImage invisibleImage = new MapillaryImportedImage(new LatLon(0.0, 0.0), 0.0, new File("")); 37 38 invisibleImage.setVisible(false); 38 39 MapillaryLayer.getInstance().getData().add(invisibleImage); … … 54 55 Object comp = MapillaryLayer.getInstance().getInfoComponent(); 55 56 assertTrue(comp instanceof String); 56 assertTrue(((String) comp).length() >= 9);57 assertTrue(((String) comp).length() >= 9); 57 58 } 58 59
Note:
See TracChangeset
for help on using the changeset viewer.