Changeset 13684 in josm for trunk/test/unit
- Timestamp:
- 2018-04-26T21:47:18+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionTest.java
r13598 r13684 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.data.projection; 3 4 import static org.junit.Assert.assertTrue; 3 5 4 6 import java.security.SecureRandom; … … 148 150 Assert.fail(); 149 151 } 150 Assert.assertTrue("missing test: "+projIds, projIds.isEmpty());152 assertTrue("missing test: "+projIds, projIds.isEmpty()); 151 153 } 152 154 … … 168 170 EastNorth en = p.latlon2eastNorth(ll1); 169 171 LatLon ll2 = p.eastNorth2latlon(en); 170 Assert.assertTrue(p.toCode() + " at " + ll1 + " is " + ll2, ll2.isValid());172 assertTrue(p.toCode() + " at " + ll1 + " is " + ll2, ll2.isValid()); 171 173 double dist = ll1.greatCircleDistance(ll2); 172 174 if (dist > eps) { … … 182 184 } 183 185 } 186 187 /** 188 * Checks that Swedish projections have their axis defined correctly. 189 */ 190 @Test 191 public void testSwedishProjections() { 192 for (int code = 3006; code <= 3018; code++) { 193 assertTrue(Projections.getProjectionByCode("EPSG:"+code).switchXY()); 194 } 195 } 184 196 }
Note:
See TracChangeset
for help on using the changeset viewer.