Changeset 13243 in josm for trunk/test


Ignore:
Timestamp:
2017-12-26T17:50:55+01:00 (20 months ago)
Author:
michael2402
Message:

See #15310: Replace use of dx/dy in bookmark loading/storing code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/io/session/SessionReaderTest.java

    r12636 r13243  
    1313import org.junit.Test;
    1414import org.openstreetmap.josm.TestUtils;
     15import org.openstreetmap.josm.data.coor.EastNorth;
    1516import org.openstreetmap.josm.gui.MainApplication;
    1617import org.openstreetmap.josm.gui.layer.AbstractTileSourceLayer;
     
    129130        final AbstractTileSourceLayer<?> image = (AbstractTileSourceLayer<?>) layers.get(0);
    130131        assertEquals("Bing aerial imagery", image.getName());
    131         assertEquals(-2.671667778864503, image.getDisplaySettings().getDx(), 1e-9);
    132         assertEquals(13.89643478114158, image.getDisplaySettings().getDy(), 1e-9);
     132        EastNorth displacement = image.getDisplaySettings().getDisplacement();
     133        assertEquals(-2.671667778864503, displacement.east(), 1e-9);
     134        assertEquals(13.89643478114158, displacement.north(), 1e-9);
    133135    }
    134136
Note: See TracChangeset for help on using the changeset viewer.