Changeset 14120 in josm for trunk/test/unit/org/openstreetmap/josm/data/osm
- Timestamp:
- 2018-08-11T17:29:48+02:00 (6 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/data/osm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/osm/DataSetMergerTest.java
r12750 r14120 19 19 import org.junit.Rule; 20 20 import org.junit.Test; 21 import org.openstreetmap.josm.Main;22 21 import org.openstreetmap.josm.data.coor.LatLon; 22 import org.openstreetmap.josm.data.projection.ProjectionRegistry; 23 23 import org.openstreetmap.josm.data.projection.Projections; 24 24 import org.openstreetmap.josm.testutils.JOSMTestRules; … … 49 49 their = new DataSet(); 50 50 their.setVersion("0.6"); 51 Main.setProjection(Projections.getProjectionByCode("EPSG:3857")); // Mercator51 ProjectionRegistry.setProjection(Projections.getProjectionByCode("EPSG:3857")); // Mercator 52 52 } 53 53 -
trunk/test/unit/org/openstreetmap/josm/data/osm/OsmPrimitiveTest.java
r10945 r14120 9 9 import org.junit.Rule; 10 10 import org.junit.Test; 11 import org.openstreetmap.josm.Main;12 11 import org.openstreetmap.josm.data.coor.LatLon; 12 import org.openstreetmap.josm.data.projection.ProjectionRegistry; 13 13 import org.openstreetmap.josm.data.projection.Projections; 14 14 import org.openstreetmap.josm.testutils.JOSMTestRules; … … 40 40 @BeforeClass 41 41 public static void setUp() { 42 Main.setProjection(Projections.getProjectionByCode("EPSG:3857")); // Mercator42 ProjectionRegistry.setProjection(Projections.getProjectionByCode("EPSG:3857")); // Mercator 43 43 } 44 44 -
trunk/test/unit/org/openstreetmap/josm/data/osm/QuadBucketsTest.java
r14092 r14120 17 17 import org.junit.Rule; 18 18 import org.junit.Test; 19 import org.openstreetmap.josm.Main;20 19 import org.openstreetmap.josm.data.coor.LatLon; 20 import org.openstreetmap.josm.data.projection.ProjectionRegistry; 21 21 import org.openstreetmap.josm.data.projection.Projections; 22 22 import org.openstreetmap.josm.gui.progress.NullProgressMonitor; … … 83 83 @Test 84 84 public void testRemove() throws Exception { 85 Main.setProjection(Projections.getProjectionByCode("EPSG:3857")); // Mercator85 ProjectionRegistry.setProjection(Projections.getProjectionByCode("EPSG:3857")); // Mercator 86 86 try (InputStream fis = new FileInputStream("data_nodist/restriction.osm")) { 87 87 DataSet ds = OsmReader.parseDataSet(fis, NullProgressMonitor.INSTANCE); … … 96 96 @Test 97 97 public void testMove() throws Exception { 98 Main.setProjection(Projections.getProjectionByCode("EPSG:3857")); // Mercator98 ProjectionRegistry.setProjection(Projections.getProjectionByCode("EPSG:3857")); // Mercator 99 99 try (InputStream fis = new FileInputStream("data_nodist/restriction.osm")) { 100 100 DataSet ds = OsmReader.parseDataSet(fis, NullProgressMonitor.INSTANCE);
Note:
See TracChangeset
for help on using the changeset viewer.