Ignore:
Timestamp:
2020-10-28T20:41:00+01:00 (4 years ago)
Author:
Don-vip
Message:

see #16567 - upgrade almost all tests to JUnit 5, except those depending on WiremockRule

See https://github.com/tomakehurst/wiremock/issues/684

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionTest.java

    r16913 r17275  
    22package org.openstreetmap.josm.data.projection;
    33
    4 import static org.junit.Assert.assertTrue;
     4import static org.junit.jupiter.api.Assertions.assertTrue;
    55
    66import java.security.SecureRandom;
     
    1111
    1212import org.junit.Assert;
    13 import org.junit.Test;
     13import org.junit.jupiter.api.Test;
    1414import org.openstreetmap.josm.data.Bounds;
    1515import org.openstreetmap.josm.data.coor.EastNorth;
     
    1919 * Unit tests for class {@link Projection}.
    2020 */
    21 public class ProjectionTest {
     21class ProjectionTest {
    2222
    2323    private static final Random rand = new SecureRandom();
     
    3030     */
    3131    @Test
    32     public void testProjections() {
     32    void testProjections() {
    3333        error = false;
    3434        text = "";
     
    120120     */
    121121    @Test
    122     public void testProjs() {
     122    void testProjs() {
    123123        error2 = false;
    124124        text2 = "";
     
    150150            Assert.fail();
    151151        }
    152         assertTrue("missing test: "+projIds, projIds.isEmpty());
     152        assertTrue(projIds.isEmpty(), "missing test: "+projIds);
    153153    }
    154154
     
    170170            EastNorth en = p.latlon2eastNorth(ll1);
    171171            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);
    173173            double dist = ll1.greatCircleDistance(ll2);
    174174            if (dist > eps) {
     
    189189     */
    190190    @Test
    191     public void testSwedishProjections() {
     191    void testSwedishProjections() {
    192192        for (int code = 3006; code <= 3018; code++) {
    193193            assertTrue(Projections.getProjectionByCode("EPSG:"+code).switchXY());
Note: See TracChangeset for help on using the changeset viewer.