Changeset 32036 in osm


Ignore:
Timestamp:
2016-01-31T11:38:38+01:00 (9 years ago)
Author:
nokutu
Message:

Fix issue with Test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/MapillaryLayerTest.java

    r31989 r32036  
    88
    99import org.junit.Test;
     10import org.openstreetmap.josm.data.coor.LatLon;
    1011import org.openstreetmap.josm.data.imagery.ImageryInfo;
    1112import org.openstreetmap.josm.gui.layer.ImageryLayer;
     
    2526  }
    2627
    27   @Test(expected=UnsupportedOperationException.class)
     28  @Test(expected = UnsupportedOperationException.class)
    2829  public void testMergeFrom() {
    2930    MapillaryLayer.getInstance().mergeFrom(dummyLayer);
     
    3233  @Test
    3334  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(""));
    3738    invisibleImage.setVisible(false);
    3839    MapillaryLayer.getInstance().getData().add(invisibleImage);
     
    5455    Object comp = MapillaryLayer.getInstance().getInfoComponent();
    5556    assertTrue(comp instanceof String);
    56     assertTrue(((String)comp).length() >= 9);
     57    assertTrue(((String) comp).length() >= 9);
    5758  }
    5859
Note: See TracChangeset for help on using the changeset viewer.