Ignore:
Timestamp:
2018-08-11T17:29:48+02:00 (6 years ago)
Author:
Don-vip
Message:

see #15229 - deprecate all Main methods related to projections. New ProjectionRegistry class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/MapViewStateTest.java

    r12076 r14120  
    1313import org.junit.Test;
    1414import org.openstreetmap.josm.JOSMFixture;
    15 import org.openstreetmap.josm.Main;
    1615import org.openstreetmap.josm.data.coor.EastNorth;
    1716import org.openstreetmap.josm.data.coor.LatLon;
     17import org.openstreetmap.josm.data.projection.ProjectionRegistry;
    1818import org.openstreetmap.josm.gui.MapViewState.MapViewPoint;
    1919import org.openstreetmap.josm.gui.MapViewState.MapViewRectangle;
     
    111111
    112112        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);
    115115        assertEquals("east", shouldEastNorth.east(), eastnorth.east(), 0.01);
    116116        assertEquals("north", shouldEastNorth.north(), eastnorth.north(), 0.01);
Note: See TracChangeset for help on using the changeset viewer.