Changeset 14120 in josm for trunk/test/unit/org/openstreetmap/josm/gui/MapViewStateTest.java
- Timestamp:
- 2018-08-11T17:29:48+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/MapViewStateTest.java
r12076 r14120 13 13 import org.junit.Test; 14 14 import org.openstreetmap.josm.JOSMFixture; 15 import org.openstreetmap.josm.Main;16 15 import org.openstreetmap.josm.data.coor.EastNorth; 17 16 import org.openstreetmap.josm.data.coor.LatLon; 17 import org.openstreetmap.josm.data.projection.ProjectionRegistry; 18 18 import org.openstreetmap.josm.gui.MapViewState.MapViewPoint; 19 19 import org.openstreetmap.josm.gui.MapViewState.MapViewRectangle; … … 111 111 112 112 EastNorth eastnorth = p.getEastNorth(); 113 LatLon shouldLatLon = Main.getProjection().getWorldBoundsLatLon().getCenter();114 EastNorth shouldEastNorth = Main.getProjection().latlon2eastNorth(shouldLatLon);113 LatLon shouldLatLon = ProjectionRegistry.getProjection().getWorldBoundsLatLon().getCenter(); 114 EastNorth shouldEastNorth = ProjectionRegistry.getProjection().latlon2eastNorth(shouldLatLon); 115 115 assertEquals("east", shouldEastNorth.east(), eastnorth.east(), 0.01); 116 116 assertEquals("north", shouldEastNorth.north(), eastnorth.north(), 0.01);
Note:
See TracChangeset
for help on using the changeset viewer.