Changeset 17275 in josm for trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionTest.java
- Timestamp:
- 2020-10-28T20:41:00+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionTest.java
r16913 r17275 2 2 package org.openstreetmap.josm.data.projection; 3 3 4 import static org.junit. Assert.assertTrue;4 import static org.junit.jupiter.api.Assertions.assertTrue; 5 5 6 6 import java.security.SecureRandom; … … 11 11 12 12 import org.junit.Assert; 13 import org.junit. Test;13 import org.junit.jupiter.api.Test; 14 14 import org.openstreetmap.josm.data.Bounds; 15 15 import org.openstreetmap.josm.data.coor.EastNorth; … … 19 19 * Unit tests for class {@link Projection}. 20 20 */ 21 publicclass ProjectionTest {21 class ProjectionTest { 22 22 23 23 private static final Random rand = new SecureRandom(); … … 30 30 */ 31 31 @Test 32 publicvoid testProjections() {32 void testProjections() { 33 33 error = false; 34 34 text = ""; … … 120 120 */ 121 121 @Test 122 publicvoid testProjs() {122 void testProjs() { 123 123 error2 = false; 124 124 text2 = ""; … … 150 150 Assert.fail(); 151 151 } 152 assertTrue( "missing test: "+projIds, projIds.isEmpty());152 assertTrue(projIds.isEmpty(), "missing test: "+projIds); 153 153 } 154 154 … … 170 170 EastNorth en = p.latlon2eastNorth(ll1); 171 171 LatLon ll2 = p.eastNorth2latlon(en); 172 assertTrue( p.toCode() + " at " + ll1 + " is " + ll2, ll2.isValid());172 assertTrue(ll2.isValid(), p.toCode() + " at " + ll1 + " is " + ll2); 173 173 double dist = ll1.greatCircleDistance(ll2); 174 174 if (dist > eps) { … … 189 189 */ 190 190 @Test 191 publicvoid testSwedishProjections() {191 void testSwedishProjections() { 192 192 for (int code = 3006; code <= 3018; code++) { 193 193 assertTrue(Projections.getProjectionByCode("EPSG:"+code).switchXY());
Note:
See TracChangeset
for help on using the changeset viewer.